J
John Latter
Hi,
Does anyone know of a 2 column css template where the height of both
columns stays the same irrespective of which column has the 'longest'
content - and where the content stays WITHIN the columns?
I've spent 2 or 3 hours trying to find a solution and am now so tired
I thought I would ask for help!
In the example below, the heights of the columns stay the same but is
determined by the right hand column content - if there's more
'vertical content' in the left hand column then it overflows into the
background colour.
I can't see why but I'm only just learning ('sigh')
<html>
<head>
<title>Page title</title><style>
body {
margin:10px 10px 0px 10px;
padding:0;
background-color:#ffffcc;
}
#box1 {
background:#003200;
}
#box2 {
margin-left:180px;
padding-left:10px;
background:#ffffcc;
}
#box1a {
position:absolute;
top:10px;
left:10px;
}
#box2a {
background:#66ffcc;}
</style>
</head>
<body>
<div id="box1">
<div id="box1a">some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P></div>
<div id="box2">
<div id="box2a">
some<P>content<P>and sometext<P>
some<P>content<P>and some text<P>some<P>content<P>
and some text<P>
</div>
</div>
</div>
</body>
</html>
Also, does anyone know why I get a bottom margin showing even though
I've set it to 0px? In some of my earlier fumblings I sometimes got
rid of it on IE6 and once on Netscape 7.1 but NEVER on Opera 7.2
I hope the above code is accurate - I've choppewd and changed it so
much that I'm too tired to see if there are any glaring errors!
--
John Latter
The 'Socially Acceptable Violence' website:
http://members.aol.com/jorolat/sac.html
Model of an Internal Evolutionary Mechanism
http://members.aol.com/jorolat/TEM.html
Does anyone know of a 2 column css template where the height of both
columns stays the same irrespective of which column has the 'longest'
content - and where the content stays WITHIN the columns?
I've spent 2 or 3 hours trying to find a solution and am now so tired
I thought I would ask for help!
In the example below, the heights of the columns stay the same but is
determined by the right hand column content - if there's more
'vertical content' in the left hand column then it overflows into the
background colour.
I can't see why but I'm only just learning ('sigh')
<html>
<head>
<title>Page title</title><style>
body {
margin:10px 10px 0px 10px;
padding:0;
background-color:#ffffcc;
}
#box1 {
background:#003200;
}
#box2 {
margin-left:180px;
padding-left:10px;
background:#ffffcc;
}
#box1a {
position:absolute;
top:10px;
left:10px;
}
#box2a {
background:#66ffcc;}
</style>
</head>
<body>
<div id="box1">
<div id="box1a">some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P>
some<P>content<P>and some text<P></div>
<div id="box2">
<div id="box2a">
some<P>content<P>and sometext<P>
some<P>content<P>and some text<P>some<P>content<P>
and some text<P>
</div>
</div>
</div>
</body>
</html>
Also, does anyone know why I get a bottom margin showing even though
I've set it to 0px? In some of my earlier fumblings I sometimes got
rid of it on IE6 and once on Netscape 7.1 but NEVER on Opera 7.2
I hope the above code is accurate - I've choppewd and changed it so
much that I'm too tired to see if there are any glaring errors!
--
John Latter
The 'Socially Acceptable Violence' website:
http://members.aol.com/jorolat/sac.html
Model of an Internal Evolutionary Mechanism
http://members.aol.com/jorolat/TEM.html