Ik heb een header gemaakt, maar IE7 heeft er geen trek in.
Ik heb al vanalles geprobeerd, maar kan de onvolkomenheid niet vinden.
En helaas rijkt mijn css kennis ook (nog) niet ver genoeg.
Delen van deze code heb ik van andere site's "geleend".
Dit is de site: http://members.chello.nl/b.nagelhout/website/test2.htm
De bedoeling is dat het middenstuk "gecentered" blijft.
Firefox doet dat goed, maar bij IE7blijf het "logo" links staan.
Hier de code:
Ik heb al vanalles geprobeerd, maar kan de onvolkomenheid niet vinden.
En helaas rijkt mijn css kennis ook (nog) niet ver genoeg.
Delen van deze code heb ik van andere site's "geleend".
Dit is de site: http://members.chello.nl/b.nagelhout/website/test2.htm
De bedoeling is dat het middenstuk "gecentered" blijft.
Firefox doet dat goed, maar bij IE7blijf het "logo" links staan.
Hier de code:
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| <HTML> <HEAD> <TITLE>test</TITLE> </HEAD> <STYLE TYPE="text/css"> <!-- body { font: 12px Arial, Helvetica, sans-serif; margin: 0px; padding: 0; background: #000 url('tile.jpg') repeat-x 100% 0; } #header, .logo-container, .logo-right, .arc-container, .arc-z,{ display: block; } #header { width: auto; min-width: 775px; height: 92px; background: url('top-tile.gif') repeat-x top center; } .logo-container, .logo-right { width: 732px; height: 92px; } .logo-container { margin: 0 auto; background: url('back-pic-left.gif'); } .logo-right { position: relative; background: url('back-pic-right.gif') no-repeat right top; z-index: 20; } h1.logo { position: absolute; top: 1px; left: 235px; margin: 0; padding: 0; width: 262px; height: 122px; background: url('logo.gif') no-repeat; } .arc-container { position: relative; width: 100%; min-width: 775px; z-index: 4020; } .arc-z { position: relative; z-index: 5020; } span.left-arc, span.right-arc { position: absolute; top: -92px; width: 85px; height: 92px; } span.left-arc { left: 0px; background: url('arc-left.gif') no-repeat; } span.right-arc { right: 0px; background: url('arc-right.gif') no-repeat; } --> </STYLE> <BODY> <div id="header"> <div class="logo-container"> <div class="logo-right"> <h1 class="logo"><img src="pixel.gif"></h1> </div> </div> </div> <div class="arc-container"> <div class="arc-z"> <span class="left-arc"></span> <span class="right-arc"></span> </div> <!--[if lte IE 6]> <img src="pixel.gif" border="0" width="775" height="1" alt="" /> <![endif]--> </div> </BODY> </HTML> |
--Stuck in the Apple Ecosystem (and happy about it).--