|
Posted by Els on 06/25/05 18:37
windandwaves wrote:
> Hi Folk
>
> I am trying to do the following:
>
> <div id="d1" style='width: 215px; height: 117px; float: left;'>
> ....
> </div>
> <div id="logo" style='width: ????; height: 117px; float: right;'>
> <img src="i/logo.gif" alt="[...]" title="[..]">
> </div>
>
> whereby I want ???? to be something so that, at any screen-width, the cell
> fills the entire screen.
>
> In a table I would do
>
> ...
> <TABLE WIDTH="100%">
> <TD width="10"></TD>
> <TD>..</TD>
> </TABLE>
>
> but how do I resolve this with DIVs?
Instead of setting a width to the second div, you give it a left
margin of 215px to accommodate the first div. No need to float it
right.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Navigation:
[Reply to this message]
|