ERLEDIGT
JA
JA
ANTWORTEN
3
3
ZUGRIFFE
548
548
EMPFEHLEN
-
26.02.08 20:57 #1
Hallo,
bin grad am redesignen meiner Website.
Da spielt sich nur leider ein problem auf, auf dessen Lösung ich einfach nicht kommen will.
(Gut, kommt drauf an was man unter "Lösung" versteht. Tabellen Layout setz ich jedoch nicht darunter
)
Und zwar habe ich einen Content, der folgendermaßen positioniert ist:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#content { position: absolute; width: 510px; height: 400px; z-index: 3; left:50%; margin-left:-250px; top:154px; color:#FFFFFF; font-family: arial; font-size:11px; padding-left: 20px; overflow: auto; overflow-x: hidden; }
Links daneben soll eine Navigation hin (siehe angeh. Bild), bei der ich jedoch nicht weiß, wie ich sie positionieren soll, ohne dass sich der Abstand zwischen Navi und Content abhängig von der Auflösung verschiebt
.
Hat jemand ne Idee, wie ich das Lösen könnte, mal abgesehen von Tabellen?
Vielen Dank,
greetz
-
26.02.08 21:00 #2Maik Tutorials.de Gastzugang
Hi,
und wenn du einfach beide Bereiche in ein übergeordnetes Element einbettest, und dieses dann im Anzeigebereich horizontal zentriert positionierst?
-
26.02.08 21:12 #3Maik Tutorials.de Gastzugang
Ansonsten würde das Stylesheet für's Erste folgendermaßen lauten, um die Navigation links daneben zu positionieren:
und so, damit beide gemeinsam im Viewport horizontal zentriert werden:Code :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
div { color:#FFFFFF; font-family: arial; font-size:11px; } #content { position: absolute; width: 510px; height: 400px; z-index: 3; left:50%; margin-left:-250px; top:154px; padding-left: 20px; overflow: auto; overflow-x: hidden; background: red; } #navi { position: absolute; width: 200px; height: 400px; z-index: 3; left:50%; margin-left:-470px; top:154px; padding-left: 20px; overflow: auto; overflow-x: hidden; background: yellow; }
Code :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
#content { position: absolute; width: 510px; height: 400px; z-index: 3; left:50%; margin-left:-155px; top:154px; padding-left: 20px; overflow: auto; overflow-x: hidden; background: red; } #navi { position: absolute; width: 200px; height: 400px; z-index: 3; left:50%; margin-left:-375px; top:154px; padding-left: 20px; overflow: auto; overflow-x: hidden; background: yellow; }
-
26.02.08 21:57 #4
jetzt wo Du's sagst

Stand wohl aufm Schlauch.
Danke für deine Hilfe
Ähnliche Themen
-
"body" bleibt immer kleiner als "content"-Div
Von Fantasmo im Forum CSSAntworten: 3Letzter Beitrag: 27.04.10, 18:46 -
PHP: "Sie sind hier"-Navigation à la "Home > Bilder ..."
Von Der_baum im Forum PHPAntworten: 6Letzter Beitrag: 20.04.07, 17:39 -
<meta name="DC.Type" content="Text"> ?
Von son gohan im Forum HTML & XHTMLAntworten: 7Letzter Beitrag: 15.01.05, 16:08 -
<meta name="robots" content="noindex"> Nähere Fragen
Von Avariel im Forum HTML & XHTMLAntworten: 1Letzter Beitrag: 08.10.03, 16:42 -
<meta name="revisit-after" content="12 days">
Von Precog im Forum HTML & XHTMLAntworten: 1Letzter Beitrag: 17.05.02, 19:04





Login





