DIV drawing on other div

L

liorlew

Hello,

I am trying to create a html page (with css) that have a header footer
and 3 columns. the problem is that when I put more than 3 lines in
the center left or right div, it write all over the footer (hides it).

this is my code:
</head>
<body>
<div id="wrapper">
<div id="header">
HEADER
</div>

<div id="container">
<div id="side-a">
rleft side
</div>

<div id="content">
<br>text here </br>

</div>

<div id="side-b">
<br>text here </br>
<br>text here </br>
<br>text here </br>

</div>
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>


the css is:

body {
text-align: center;
min-width: 700;
}
#wrapper {
text-align: left;
margin: 0px auto;
padding: 0px;
border:0;
width: 750px;

}

#header {
border: 1 solid #ADD8E6;
margin: 0 0 2px 0;
background: #F0FFFF;
}


#pubs_top {
background: #F0FFFF;
margin: 2 0 1px 0;
border: 1 solid #ADD8E6;
}

#menu {
background-image: url("line.bmp");
background-repeat: repeat-x;
margin: 0 0 1px 0;
hight:50;
}

#side-a {
float: left;
width: 150px;
background: #F0FFFF;
margin-bottom: 5px;
margin-top: 2px;
border: 1 solid #ADD8E6;
}

#side-b {
float: right;
width: 150px;
background: #F0FFFF;
margin-bottom: 5px;
margin-top: 2px;
border: 1 solid #ADD8E6;

}

#content {
float: left;
background: #F0FFFF;
width: 58.5%;
margin: 2 5 2px 5;
border: 1 solid #ADD8E6;
}

#footer {
background: #F0FFFF;
border: 1 solid #ADD8E6;
}


does anyone have an idea?


Thanks,

Lior
 
D

dorayme

liorlew said:
Hello,

I am trying to create a html page (with css) that have a header footer
and 3 columns. the problem is that when I put more than 3 lines in
the center left or right div, it write all over the footer (hides it).

this is my code:
does anyone have an idea?

You better read

http://www.htmldog.com/

You can't have numbers without units in your css and so on, just very
very basic things here.
 
L

liorlew

You better read

http://www.htmldog.com/

You can't have numbers without units in your css and so on, just very
very basic things here.

Thank you for your reply, I am reading this site. nonetheless, even
after adding the units ( for examle margin: 2px 0 1px 0), and getting
the same results.
 
J

John Hosking

liorlew said:
You better read

http://www.htmldog.com/

You can't have numbers without units in your css and so on, just very
very basic things here.
[/QUOTE]
Thank you for your reply, I am reading this site. nonetheless, even
after adding the units ( for examle margin: 2px 0 1px 0), and getting
the same results.

Snip sigs in replies
Validate code
Provide URLs
HAND
 
H

Helpful person

Thank you for your reply, I am reading this site. nonetheless, even
after adding the units ( for examle margin: 2px 0 1px 0), and getting
the same results.

Look up clear in css. This may be what you need.
 

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,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top