Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thought it was a simple margin thing...

    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

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    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, margin/padding/border all count in figuring total width.

    This should work for you -
    Code:
    					
    #content {
    	width: 515px;
    padding: 0 15px;
    	float: left;
    	background: #000;
    	color: #fff;
    	font-size:12px;
    	font-family: verdana,arial,san-serif;
    	text-align: justify;
    
    	
    	
    	
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Oh, if you only want the right side of you #content affected you would need to make it more like this -
    Code:
    				
    #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;
    
    	
    	
    	
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New Coder
    Join Date
    Feb 2009
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you. they dont call me a beginning coder for nothing. :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •