3 col CSS layout adding middle bgcolor?

B

Bo

How can I add some code so that left1, left2 and right in the code below has
a white background of their own and I can black or image defined in the body
tag?

Thx in advance.

<style type='text/css'>
..wrapper{
margin: 0px auto;
width: 986px;
background-color: #cccccc
}
..header{
float: left;
width: 986px;
height: 114px;
background-color: #6699cc;
position:fixed
}
..left1{
float: left;
margin-right: 20px;
margin-top: 120px;
width: 180px;
background-color: #ffffff
}
..left2{
float: left;
margin-right: 20px;
margin-top: 120px;
width: 606px;
background-color: #ffffff
}
..right{
float: right;
margin-top: 120px;
width: 160px;
background-color: #ffffff
}
..footer{
float: left;
width: 100%;
background-color: #cfcfcf
}
body {
padding: 0px;
margin: 0px;
background-color: #000000
}
</style>

Bob
 
D

dorayme

"Bo said:
How can I add some code so that left1, left2 and right in the code below has
a white background of their own and I can black or image defined in the body
tag?

What a funny sentence? Perhaps you are wanting .wrapper (overflow:
hidden;} or, to satisfy IE6, put a cleared element below the floats.

Perhaps you might be helped by:

http://netweaver.com.au/floatHouse/
 
R

richard

How can I add some code so that left1, left2 and right in the code below has
a white background of their own and I can black or image defined in the body
tag?

Thx in advance.

body {background:#fff}

..left1, .left2, .right {background:#000}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top