CSS Grid systems
Posted: Sat Apr 30, 2011 12:03 pm
I've come across the so called CSS "grid systems" which are mostly included in frameworks, but if I understand the concept correctly I am not sure it works very well.
Imagine this scenario,
We have a site made, the client wants to change the padding of two specific elements on his page, the site contains around 50 .php files with those elements inside each page (maybe because the template changes from page to page but the elements/boxes etc remain the same, just their position changes)
Wouldn't it be faster if I have used a class for each of them so I could change the padding CSS attribute for .white-box and .yellow-box than changing the CSS class from .push-30 to .push-20 for both elements in all the .php files? Wasn't that the purpose of CSS?
I'd like to hear your take on this.
Imagine this scenario,
We have a site made, the client wants to change the padding of two specific elements on his page, the site contains around 50 .php files with those elements inside each page (maybe because the template changes from page to page but the elements/boxes etc remain the same, just their position changes)
Wouldn't it be faster if I have used a class for each of them so I could change the padding CSS attribute for .white-box and .yellow-box than changing the CSS class from .push-30 to .push-20 for both elements in all the .php files? Wasn't that the purpose of CSS?
I'd like to hear your take on this.