...

View Full Version : thought it was a simple margin thing...



hwoodfilm
01-03-2010, 12:50 AM
maybe it is....cant figure out how to get the right side of the text in the left column to not go all the way to blue. ive tried using padding and margin and all that seems to happen is blue column gets all screwed up. 15px will be fine. ??

www.nylafilms.com/about

David

Excavator
01-03-2010, 01:01 AM
Hello hwoodfilm,
What did you try?
If adding padding or margin to your content column, the total width of #content has to stay 545px or your left margin on #column would have to be adjusted. That's how the box model works (http://www.w3.org/TR/CSS2/box.html), margin/padding/border all count in figuring total width.

This should work for you -

#content {
width: 515px;
padding: 0 15px;
float: left;
background: #000;
color: #fff;
font-size:12px;
font-family: verdana,arial,san-serif;
text-align: justify;




}

Excavator
01-03-2010, 01:03 AM
Oh, if you only want the right side of you #content affected you would need to make it more like this -

#content {
width: 530px;
padding: 0 15px 0 0;
float: left;
background: #000;
color: #fff;
font-size:12px;
font-family: verdana,arial,san-serif;
text-align: justify;




}

hwoodfilm
01-03-2010, 02:06 AM
thank you. they dont call me a beginning coder for nothing. :-)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum