Jump to content

How align center with css


Bigfoot4

Recommended Posts

 

How can I align the name of a product in the description in the center using external CSS? I currently use inline. Also, if I tag this product name, how do I not affect the style of all elements and sections that use the same tag? Is there a solution? Thank you!

Link to comment
Share on other sites

Assuming you are using PrestaShop 1.7 and the Classic theme... you can add your custom CSS into themes/classic/assets/css/custom.css - this is where you can put your custom CSS tweaks.

On your second question - you need to be specific and careful in choosing your CSS selectors. This is a good intro resource: https://www.w3schools.com/cssref/css_selectors.asp

To make it easy to find out what selectors to use, I use the free Chrome developer tools - Shift-Ctrl+I (I==Inspect), you can then use these tools to find the element you want to style, and decide which selector to use. If you post a URL for your shop and identify what you want to style, we can give some specific suggestions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...