|
paul rayner -> Positioning problems - probably simple, but???? (5/10/2005 7:10:00)
|
I've started a site at http://www.maranoa.org.au/agent/index.htm, and I'm trying to get it right before I add content. Here are my probs: 1. I want the whole block in the centre of my screen. 2. There sometimes appears a white space down the left hand side - I'd like to ditch that. 3. If you mouse over the menu bar, the menu "moves", and the white space that was down the side, disappears 4. there's a little white space above the footer - I want the nav section to go down to the footer. 5. I'd like to centre the image in the content section. Also, I'd to add 2 boxes as sections below the image - small areas for teaser type content. I was going to try rounded corners, but I'm not even sure how to get the boxes there in CSS. Here's my CSS: body { font-family: georgia, times, "times new roman", serif; color: #000; background-color: #CCCCBB; width:760px; text-align: center; } #container { margin: 1em 5%; background-color: #FFF; background-image: url(images/background.jpg); background-repeat: repeat-y; border: 1px solid #333; text-align:left; } #banner { background-color: #999966; border-bottom: 1px solid #333; } #banner h1 { margin: 0; padding: .5em; } #nav { float: left; width: 260px; margin-left: 0px; background-color: #DDDDCC; padding-top: 1em; margin-bottom: 0px; } #nav p { margin-top: 0; margin-left: 10px; } #content { padding-top: 1em; margin: 0 2em 0 200px; } #content h2 { margin-top: 0; } #footer { clear: both; background-color: #999966; padding: 1em; text-align: right; border-top: 1px solid #333; } /*Menu is below*/ #menu{ font: 12px Verdana, Arial, Helvetica, sans-serif; width: 190px; margin: 0%; padding: 0px 0px 0px 5px; margin-top:0px; margin-bottom:30px; position: float; margin-left: 30px; top: 126px; } #menu a{ padding: 0px 0px 0px 5px; display: block; color: #000; border: 1px solid #999900; border-left: 20px solid #999966; background-color:#Cdc7AD; text-decoration: none; line-height:18px; border-top-color: #D5D500; } #menu a:hover{ border: 1px solid #999900; border-left: 20px solid #f3f3f3; background-color:#DDDDCC; color:#000; text-decoration: none; } #menu ul li a{ list-style-type:none; } /* images*/ .floatright { float: right; } .floatleft { float: left; } Thanks. Paul BTW I viewed these errors in IE 6.0
|
|
|
|