|
Posted by Luigi Donatello Asero on 08/18/06 15:21
"dorayme" <doraymeRidThis@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-363A90.19435218082006@news-vip.optusnet.com.au...
> 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?
Exactly, why not?
You find out things by experimenting and as long as you do not experiment
dangerous things, it is safe, isn´t it?
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.
I think that I had already tried it.
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.
I have not tested it only only on IE.
it seems ok on Opera and Firefox as well.
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
你在什么时候早饭了 ?
Navigation:
[Reply to this message]
|