I'm designing a webpage with a header, two side navigations, a footer and a main content area with CSS and divs. (Click here to see).
Here are my problems:
Here is what I have:
I don't even know what to do with the footer CSS so I left it out.
Check in both Firefox and IE please
Somebody please help me. I'm not very familiar with designing with divs.
Also, is it possible to add border to divs? if possible, how?
Here are my problems:
- Making sure that the right navigation div will always expand to the full browser length and be at least 120 pixels.
- Making sure that the footer div stays on the bottom of the page or just below everything
- Making sure that the left and right navigation and the content area expand to 100% of the browser window.
Here is what I have:
| Code: |
| <html>
<head> <title>Webpage</title> <style type="text/css"> body{ font-family: verdana, arial, sans-serif; font-size:0.9em; } #header{ width:611px; height:90px; position:absolute; top:0; left:0; border:1px; background: #444; color:#fff; padding:20px; } #leftnav{ width:130px; height:100%; position:absolute; top:131px; left:0; padding:10px; background: #666; } #content{ width:480px; height:100%; position:absolute; top:131px; left:151px; padding:10px; background: #888; } #rightnav{ position:absolute; top:0; left:652px; background:#aaa; padding:30px; } </style> </head> <body margin="0"> <div id="header">Blah</div> <div id="leftnav">Blah</div> <div id="content">Blah</div> <div id="rightnav">Blahdiv> <div id="footer">blah</div> </body> </html> |
I don't even know what to do with the footer CSS so I left it out.
Check in both Firefox and IE please
Somebody please help me. I'm not very familiar with designing with divs.
Also, is it possible to add border to divs? if possible, how?
