How to increase site width with rem in Twenty Twelve theme
-
Hi there,
I would really like some help to iron out an rem mystery in Twenty Twelve.
I have made a child theme. I set the new max-width to 1024px and the rem to be 1024 divided by 14. I used the below CSS code:
max-width: 1024px;
max-width: 73.1428571rem;This however did not actually make the site width 1024px, it was narrower that it should be.
I understand that by increasing the rem it will increase the width so I tried the below code and it DOES output the width to 1024px:
max-width: 1024px;
max-width: 84.10000rem;However, I am worried about why the ‘divide by 14′ is not giving me the rem that should be equal to the pixel width. I am also worried that if I leave it at 84rem, will it stuff up the theme’s responsiveness? I realise this also affects the rem used elsewhere, such as in the margins where I have a pixel defined, eg 120px/14 = 8.57142857rem, and then the result does not reflect the actual 120px.
I’d really appreciate any advice.
You can view the site at: https://unknownjourney.com.auI’d really like to understand rem better before moving on with developing the site. Thanks in advance for any feedback! ??
- The topic ‘How to increase site width with rem in Twenty Twelve theme’ is closed to new replies.