Hey, I am after making a design for my site. I got the css all working except one thing. I have a box that is on the left but i want to put space between that and the left border. Here is the css:
How do I make the #about not stick to the left. Just be about 5px off the left? I tried position:absolute; left: 10px but that didnt work. Any ideas? Thanks in advance.
| Code: |
|
*{ margin:0px; padding:0px; } body{ font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; font-size: 11px; } #container{ background: #000000; width: 800px; height: 600px; border: 1px solid #000000; margin-left: auto; margin-right: auto; } #header{ margin-left: auto; margin-right: auto; width: 800px; height: 120px; border-bottom: 1px solid #000000; } #navigation{ width: 800px; margin-left: auto; margin-right: auto; height: 26px; background: url('http://www.mydomain.com/images/nav_background.jpg'); } #navigation td{ border-right: 1px solid #a40000; } #navigation td img{ border: none; } #about{ float: left; width: 380px; height: 250px; background: url('http://www.mydomain.comt/images/about_background.jpg'); border-right: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF; color: #FFFFFF; } |
How do I make the #about not stick to the left. Just be about 5px off the left? I tried position:absolute; left: 10px but that didnt work. Any ideas? Thanks in advance.
