In article Dariusz wrote:[color=blue]
>
> I am trying out a fully CSS-P layout (first time with floats) and am having
> problems with getting certain DIV's from displaying properly - or rather -
> they are being completely ignored.[/color]
[color=blue]
> Below is a copy of the code I have written. It is arranged as follows:
> Header
> Left Middle Right
> Footer[/color]
Since your clueless use of position:absolute and position:relative
everywhere, I get footer that is behind first image. Get rid all of them
unless you really need one.
[color=blue]
> However, in the "Header" DIV, I have two further DIV's called "Date" and
> "Menu_choice", and it is these DIV's that are not being rendered in terms
> of positioning or style.[/color]
Well, I see no reason using positioning here.
[color=blue]
> The text for these two DIV's do show in the "Header" DIV, but it shows them
> (position approx top:0px left:0px) as the "Date" then underneath
> "Menu_choice" without any text style or positioning ("Menu_choice" does
> have some style given to it because of the "A:link" property).
>
> If I move the "Date" and "Menu_choice" DIV declarations to be underneath
> the "Header" declaration - the entire design breaks in all browsers.
>
> Does anyone know how to fix the code so the two DIV's do get the styles
> they are supposed to be getting? This problem has got me perplexed for
> days.
>
> Dariusz[/color]
Hard to say without URL. I don't have your images, nor SSI. Looked
anyway, and noticed you hadn't bothered to chaec your CSS for errors:
#Date ( position:absolute; left:350px; z-index:3;
^^^^^^^^^^^^
You have copy pasted lot of stuff together, whitout really understanding
what you do? I see parts of tantek hack, and an empty comment that is
only needed if elements would be in reversed order etc.
[color=blue]
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">[/color]
You use strict. That's good.
[color=blue]
> <STYLE TYPE="text/css">
> <!--
> body { margin: 0; padding: 0; background: #fff; color:
> #000; }
> /*for Opera*/
> html>body { width:100%; }[/color]
Other part of Tantek hack (nice to opera rule), this also does nothing.
[color=blue]
> DIV.Text { text-align:justify; margin-left:10px;
> margin-right:10px; color:#000000; font-size:0.9em; font-family:zapf
> chancery, sans-serif; }[/color]
http://www.xs4all.nl/~sbpoley/webmatters/fontsize.html
[color=blue]
>
> /*** Setup the header, 3 columns and footer ***/
> #Container { margin:0px auto; padding:0px; voice-family:
> "\"}\""; voice-family:inherit; }[/color]
What is this hack trying to do? Currently it does nothing.
[color=blue]
> #LEFT_RIGHT { padding:0px; }
>
> #Left { position:absolute; float:left; z-index:1;
> width:255px; padding:0; margin:0;
> background:url("img/Funhost_nl-left.gif"); background-repeat:no-repeat;
> background-color:rgb(255,255,255); }[/color]
Why do you position this absolutely? And then float it? Doesn't make
sence.
[color=blue]
> #left-text { position:relative; left:10px; top:20px; z-index:2;
> padding-bottom:20px; margin-bottom:20px; }[/color]
Don't use relative positioning instead top and left margin. It doesn't
make sence 99% of times.
[color=blue]
> #Date ( position:absolute; left:350px; z-index:3;[/color]
^^^^ shoudl be {[color=blue]
> font-size:10px; font-family:zapf chancery, sans-serif; color:#000000; }
> #Menu_choice { position:relative; top:50px; left:300px;
> z-index:3; font-size:1em; font-family:zapf chancery, sans-serif;
> color:#000000; }[/color]
Also not used, as selector doesnt make sence (whole thing since #Date is
that is)
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.