Blueprint
gecko001 - October 11, 2009 - 09:31
Hi Guys,
I have searched every where with no luck. Could someone please help.
I am looking to find the correct way to add padding to my text.
I am using the blueprint theme.
So if i have a a two column layout center-col = span-18 and right-col = span-6 my text in the center col is hard up against the left hand side of the column. What is the corect way to make the text padded?
If i add the class box it pads but then my layout breaks so i need to change the center col to span-17 this just seems a little weird.
Can anyone please help with the correct answer.
Tx
Gecko

...
padding, margin and borders, in fact anything that adds width needs to be added to the content of the column, adding it to the column, as you have found, will break the layout. One easy trick is use an inner div (to wrap the entire contents of the column) and use that to add padding.
E.g.
HTML:
<div class="center-col span-18">
<div class="inner"> ... content is here... </div> <- add padding etc to this
</div>
CSS:
.center-col .inner {padding: 10px;}
Professional Drupal Design and Theme Services
thanks
Thanks Jeff,
That makes sense.
G