Ok... I need something VERY simple. I just want 2 divs side by side and I want them to be variable in size... so that they fit whatever content goes in them (to a certain degree).
What I've ended up doing in the past is using a "wrapper" div of some sort to accomplish what I want to do and to get them to position correctly. This also lets me do padding and margins around the 2 inside divs. So here is what I have so far:
.ncLRContain {
margin: 6px 50px 6px 50px;
}
.ncleft{
text-align: left;
float: left;
}
.ncright {
text-align: right;
}
But I don't know if that is the best way to do it.
Perfect. I knew there was a simple solution. :cool:
Tasmanian Devil
02-09-2005, 01:31 PM
Is it possible to have one say in the upper right hand corner and and another div to wrap around the corner one to fill the rest of the screen?
Thanks
The Devil
Fantatier
02-09-2005, 02:02 PM
Originally posted by Tasmanian Devil
Is it possible to have one say in the upper right hand corner and and another div to wrap around the corner one to fill the rest of the screen?
Thanks
The Devil
i supose a div inside a div should work for that.
Tasmanian Devil
02-09-2005, 02:04 PM
Where can I find out how to do that? I have never done anything like this.
Thanks
The Devil
Fang
02-09-2005, 02:10 PM
http://www.bigbaer.com/css_tutorials/css.float.html.tutorial.htm
or this basically:
<div style="width:400px;border:1px solid red;">
<div style="float:right;width:200px;border:1px solid red;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Nullam varius, ante eu tempus ultrices, risus augue sodales eros, at sagittis elit orci et nisl.</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam varius, ante eu tempus ultrices, risus augue sodales eros, at sagittis elit orci et nisl.
Nullam lacus ante, fringilla ut, sagittis sit amet, bibendum at, purus. Praesent lacus justo, facilisis sit amet, fermentum id, placerat quis, mi.
Etiam volutpat. Aenean rutrum, odio in laoreet tincidunt, arcu enim laoreet massa, ut congue pede metus sit amet libero.
Nam placerat, orci in scelerisque sollicitudin, magna urna nonummy leo, at semper lorem elit tincidunt purus. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</div>
Tasmanian Devil
02-09-2005, 02:45 PM
So how do I make the following code to work in the float div?