Daniel Breitner wrote:
> Hello,
>
> if u visit the page
>
http://val.muriel-rist.webseiten.cc/referenzen
>
> in any up to date browser except IE (FF, Chrome, safari, opera), u see
> the effect that the heade text "Auftraggeber/ Referenzen" appears
> *before* the grey text block, which is the desired behaviour. ( I used
> margins and z-indexes to achieve this effect.)
>
> But, on good old IE - it doesnt work, the header appears *behind*,
> i.e. appears "cut".
>
> How can I fix this properly??
> Thanx a lot!!!
First of all your page is in *quirks mode* so as such the hope of
consistency among all browsers is pretty slim.
<
http://www.google.com/search?q=why+avoid+quirks+mode>
Secondly, your page is rife with errors that will sabotage and chance of
consistency among all browsers as each tries to "fix" your errors and
"understand you intent". You use HTML but have a number of places where
you are using XHTML syntax.
<
http://validator.w3.org/check?uri=http%3A%2F%2Fval.muriel-rist.webseiten.cc%2Fgerman%2F&charset=iso-8859-1&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.2>
Thirdly, your page seems to suffer from DIV-ious, too many unnecessary
extra DIVs
Now a strip down version that I think is what you are seeking. I
stripped out the extra DIVs and use a single "wrapper" DIV. I have it
set with a dotted red border to show you how it works. I set it to
"position: relative" to give a reference point to offset "Auftraggeber/
Referenzen". Now I only set the headerText_1 DIV to "position: absolute"
and offset to place over contentText_1. No messing with z-index
required. Works in IE 6+
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>No Quirks</title>
<style type="text/css">
body { background-color: #ffd; font-family: sans-serif; }
.wrapper { position: relative; margin: 0 auto; width: 50em;
border:1px dotted red; }
.headerText { font-size: 1.3em; }
.contentText { margin: 1em 0; padding: 2em 6em; font-size: 1em; }
.headerText_1 { position: absolute; top: .05em; left: 1em; }
.contentText_1 { background-color: #cbc2ca; }
.contentText_2 { background-color: #dde3e9; padding-top: 1em;
padding-bottom: 1em;}
</style>
</head>
<body>
<div class="wrapper">
<div class="headerText headerText_1">Auftraggeber / Referenzen</div>
<div class="contentText contentText_1">Botschaften, Ministerien,
politische Einrichtungen
<br>
Staatliche Organisationen, Stiftungen
<br>
Verbände, Industrie, Wirtschaft
<br>
Soziale Einrichtungen
<br>
Messen
<br>
Kultur
<br>
Justiz
<br>
Marktforschung, Marketing
</div>
<div class="contentText contentText_2">
Für direkte Nachfragen nenne ich Ihnen gerne die jeweiligen
Ansprechpartner.
</div>
</div>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com