Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

FN-FORUM: Div styling problem

date posted 1st February 2008 22:08

Hi all,

I am building a website in CSS and XHTML, and am having problems with the
divs inside. Trouble is, after a long day, I have had a complete brain
meltdown, and need help:

There is a big div called wrapper, inside of which I have divs for a header
(logo), left hand side (main text) and right hand side (menu, lists, etc).
There is a copyright div below this. The left-handside, right-handside and
copyright divs are contained in a div called content (to allow the
left-content and right-content divs to position properly). The CSS in use is
this:

#wrapper {
width: 730px;
border: 1px solid black;
position: relative;
left: 179px;
top: 70px;
height: 172px;
overflow: visible;
}

#header {
margin-bottom: 2%;
background-image: url(../images/header.jpg);
height: 100px;
width: 730px;
}

#left-content {
width:63%;
float: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin-bottom: 25px;
margin-left: 2%;
}

#right-content {
width:32%;
float: right;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
overflow: auto;
border-left: 1px solid #c4c4c4;
padding-left: 10px;
margin: 0px 5px 20px 0px;
}

.headertxt {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 48px;
font-style: normal;
font-weight: bold;
color: #FFFFFF;
padding-left: 10px;
}

#content {
}

#navigation {
position:absolute;
width:282px;
height:17px;
z-index:1;
left: 415px;
top: 11px;
}

.navtext {
color: #DFD7D4;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}

#wrapper #header #navigation a {
color: #E0D6D4;
text-decoration: none;
}

a:hover {
color: #9FBBD0;
text-decoration: underline;
}

#copyright {
font-family: Verdana, Arial, Helvetica, sans-serif;
height: 25px;
font-size: 10px;
border-top: 1px solid #C4C4C4;
padding: 5px 0px 5px 5px;
clear: both;
}

My question is - when I add text to the left-content div, this floats down
and over the border set for the top of the copyright div. I have hunted high
and low but cannot find why - I think that I have to use something like the
overflow CSS keyword, but if so, where? Can anyone point me in the right
direction please?

Thanks,

Alex



Messages by Day
February 29th 2008
February 28th 2008
February 27th 2008
February 26th 2008
February 25th 2008
February 24th 2008
February 23rd 2008
February 22nd 2008
February 21st 2008
February 20th 2008
February 19th 2008
February 18th 2008
February 17th 2008
February 16th 2008
February 15th 2008
February 14th 2008
February 13th 2008
February 12th 2008
February 11th 2008
February 10th 2008
February 9th 2008
February 8th 2008
February 7th 2008
February 6th 2008
February 5th 2008
February 4th 2008
February 3rd 2008
February 2nd 2008
February 1st 2008


Messages by Month
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000