Jump to content

Reducing header on category page


Recommended Posts

11 minutes ago, Prestashop Addict said:

Hi,

in theme.css change to

.block-category h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

 

Thanks! That solved the alignment issue, however in that h1 tag I do not see anything referring to height or width of the block...

Link to comment
Share on other sites

3 minutes ago, Maria Gonzalez said:

Thanks! That solved the alignment issue, however in that h1 tag I do not see anything referring to height or width of the block...

You can use font-size property for height.

Or add height and width properties to the body of the block:

.block-category h1 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
width:100px;
height:10px;
}

 

Link to comment
Share on other sites

il y a 13 minutes, Maria Gonzalez a dit :

Thanks! That solved the alignment issue, however in that h1 tag I do not see anything referring to height or width of the block...

What do you mean by height and width. If you put fixed value, you'll have display issues on small devices 😞 

Link to comment
Share on other sites

8 minutes ago, webprog said:

You can use font-size property for height.

Or add height and width properties to the body of the block:

.block-category h1 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
width:100px;
height:10px;
}

 

Height seems to not affect the block...

header_categories.jpg

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...