Reply to Re: Floating

Your name:

Reply:


Posted by dorayme on 08/18/06 09:43

In article <QZbFg.13606$E02.4979@newsb.telia.net>,
"Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote:

> Hello,
> I have one <div> on the left which is floating and I want another <div> to
> be positioned on its right.
> The problem is that when I resize the window the margins of the <div>
> container on the right touch the container on the left
> (do you talk about collapsing margins, by the way?)
> The <div> on the left is used for a menu and the <div> on the right for a
> list of content or table of contents.
> All that on the page
> https://www.scaiecat-spa-gigi.com/it/svezia.html
> If I use clear:left;
> the list of contents is placed after the menu but I want it to be positioned
> on its right when the window is large.

Why would you think to use clear when what you want is precisely
the very opposite? Do you use things that have names and when
there is any sort of problem, you look around and see what other
names are usually mentioned in association with the things you
are having trouble with and just think, I will try to introduce
these other things, who knows what they do, I might get lucky.

There is an extremely fine analogy going around alt.html at the
moment likening making a website to baking a cake. You hear cooks
go on about "a pinch of salt" with so many cakes; you are having
trouble with a cake; you haul the wreck out and make a few holes
and introduce salt and stick it back in the oven... Why not? It
was mentioned in association with cakes.

If you want the div on the right not to touch the div floated on
the left, you need to decide if it is going to have a width,
perhaps best. And maybe margin and padding. You then have to add
these up. Then probably best to give the right div a left margin
sufficient to contain the float and some... And make with a few
margins and padding on it till you get what you want. Play in FF
with its extensions which let you see the effect of experiments
on the css immedietely. But you can give IE special instructions
inside certain hacks.

But IE will send you crazy. However you can give IE special
instructions. But first things first.

--
dorayme

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация