|
Posted by Els on 12/08/05 23:30
Luigi Donatello Asero wrote:
> "Els" <els.aNOSPAM@tiscali.nl> skrev i meddelandet
> news:3e7gpz9xmor1$.dlg@locusmeus.com...
>> Luigi Donatello Asero wrote:
>>
>>> "Els" <els.aNOSPAM@tiscali.nl> skrev i meddelandet
>>> news:1f6uk6bvj50ox$.dlg@locusmeus.com...
>>>> Dylan Parry wrote:
>>>>
>>>>> Pondering the eternal question of "Hobnobs or Rich Tea?", Els finally
>>>>> proclaimed:
>>>>>
>>>>>> You're so right! :-)
>>>>>
>>>>> I'm either stupid or full of chocolate and coffee icecream,
>>>>
>>>> 'or' or 'and'? ;-)
>>>>
>>>>> but he's got me trying to be helpful too now :(
>>>>
>>>> Stop now, or be lost forever :P
>>>>
>>>> Just a reminder (maybe new info for others): the solution to Luigi's
>>>> problems is almost invariably utterly simple. It's the convincing him
>>>> of such fact, which is a downright PITA.
>>>
>>> So, tell me which was your fine solution?
>>
>> I just *know* you won't use it, but here's anyway:
>>
>> <div id="top">
>> <div id="a">bla</div>
>> <div id="b">bla</div>
>> <div id="c">bla</div>
>> </div>
>> <div id="bottom">
>> <div id="d">bla</div>
>> <div id="e">bla</div>
>> <div id="f">bla</div>
>> </div>
>>
>> #top,#bottom{
>> width:100%;
>> float:left; /* to avoid peek-a-boo in IE */
>> clear:left;
>> margin:20px 0;
>> }
>> #a,#d{
>> width:30%;
>> float:left;
>> background-color:yellow;
>> }
>> #b,#e{
>> width:30%;
>> float:right;
>> background-color:blue;
>> }
>> #c,#f{
>> margin-left:34%;
>> margin-right:34%;
>> background-color:red;
>> }
>>
>> --
>
> Did you take into account the structural relationship between for example
> the div which relates to "Semesterbostäder i Sverige" and the one which
> refers to
> "Semesterbostäder i Italien" (both belonging to "Semesterbostäder" but one
> being into the "top" and the another into the "bottom" while putting
> together 3 divs in the bottom and
> 3 divs in the top?
I don't speak Swedish, so I did indeed not take into account any
structural relationship at all. It's easy enough to make it 3 columns
of 2 rows instead of 2 rows of 3 columns, but then you won't have
equal heights. If you want to maintain that relationship /and/ equal
heights to make it look like a table, you're looking for a table, and
you shouldn't use divs to make life difficult.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Navigation:
[Reply to this message]
|