Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I don't think that you can do any computing in css, and if it's floated, it's outside of the normal fow, so it won't work....
Maybe by using inline elements, and not block elements you could do that.
Something like 2 span, 1 being 200px and the other being 100%, but the 2 being not floated nor positioned...
I don't know if this can work, I'm just doing a proposal...
Edit:
Nah... I just tried it, it don't work. Inline elements cannot have a width.
In that case, the easiest way would be to use a table, I'd say.
As it would have 1 cell 200px, and the other would grow to the size available...
Code:
table
+-------+-----------------+
| <div> | <div> |
| 200px | 100% |
+-------+-----------------+
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 09-28-2007 at 08:52 AM..
|