Wilhelm Kutting wrote:
[color=blue]
> Hi i like to make a complex layout with css.
> All the content is inside a container div.
>
> I like to get the following sequence without the css-layout:
> logo
> title
> mainnav
> content
>
> i can only get the results when i use negative positioning.
> Target browsers seem to have no problem with that.
>
> Is this a good way or do i have a better possibility?
>
> <div id="container" style="margin-left:auto ; marginauto-right: auto;
> padding: 0px; width: 775px; font-family: Verdana, Arial,
> Helvetica, sans-serif;
> font-size: 80%;">[/color]
So, you're forcing 775px width on me, as well as a font smaller than I
have chosen as my preference. Thanks a bunch.
What's marginauto-right?
[color=blue]
> <div>
> <div id="Layer1" style="position:relative; left:0px; top:0px;
> width:230px; height:167px; z-index:1; background-image:
> url(/img/main/pic-lo.jpg); layer-background-image:
> url(/img/main/pic-lo.jpg); border: 1px none #000000;" align="left"></div>[/color]
Layer1. Descriptive name - I like it. I don't see layer-background-image
in the CSS specs.
[color=blue]
> <div id="Layer2" style="position:relative; left:143px; top:0px;
> width:87px; height:200px; z-index:2; background-color: #FFCBCE;
> layer-background-color: #FFCBCE; border: 1px none #000000;"></div>[/color]
Layer2: another good name choice.
[color=blue]
> <div id="Layer3" style="position:relative; left:143px; top:0px;
> width:172px; height:90px; z-index:3; background-image:
> url(/img/main/pic-txt.gif); layer-background-image:
> url(/img/main/pic-txt.gif); border: 1px none #000000;"></div>[/color]
Layer3: I didn't see that coming. I'm getting bored chasing this lot
through. My guess is that position: relative is confusing you. Please
post a URL so that we can take a look at what is happening using real
tools like Firefox's Web Developer Toolbar.
Make sure your code validates first.
--
Mark.
http://tranchant.plus.com/