zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Floating/Positionierungs-Hilfe benötigt

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 14.11.2010, 15:32
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 14.11.2010
Beiträge: 1
Susi_H befindet sich auf einem aufstrebenden Ast
Standard Floating/Positionierungs-Hilfe benötigt

Hallo,

ich sitze an einem Grundlayout, bei dem sich ein rechter Content-Bereich (div id="rechts") dynamisch mit Grösse des Browserfensters horizontal verschiebt. Er ist dabei mit float: right am rechten Browserrand positoniert. Mein Test-Code unten funktioniert wunderbar in Firefox und Safari. Allein im Internet-Explorer 7 + 8 verschiebt sich der rechte Content unter den linken. Wie kann ich die korrekte Positonierung auch im IE erreichen?

Sehr dankbar für Hilfe!
S.


HTML-Code:
<style type="text/css">

#navi {
font-size: 30px;
}

#sub {
font-size: 11px;
width: 300px;
padding-top: 20px;
margin-left: -135px;
}

#weiss {
color: #FFFFFF;
}

#links {
padding-top: 60px;
float: left;
width: 500px;
margin-left: -600px;

}


#wrap {
padding-left: 600px;
background-color: #CCCCCC;

}

#rechts {
background-color: #6666CC;
float: right;
width: 100px;
height: 500px;
margin-top: 0px;
}
</style>

</head>

<body>

<div id="wrap">

<div id="links">

    <div id="navi">
    <a href="#">home</a>
    <a href="#">service</a>
    <a href="#">blab</a>
    <a href="#">kfgdjgklsj</a>
    <a href="#">service</a>

    </div>
    
    <p></p>
    
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
</div>


<div id="rechts">

    <div id="sub">
    <a href="#">home</a>
    <a href="#">service</a>
    <a href="#">blab</a>
    <a href="#">kfgdjgklsj</a>
    <a href="#" id="weiss">service</a>
    </div>

</div>

</body>
</html>
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 14.11.2010, 17:02
Benutzerbild von Manfred62
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 18.09.2009
Ort: Ludwigsburg
Beiträge: 2.134
Manfred62 ist einfach richtig nettManfred62 ist einfach richtig nettManfred62 ist einfach richtig nettManfred62 ist einfach richtig nettManfred62 ist einfach richtig nett
Standard

Zu <div id=wrap> fehlt der Endtag.
Der Text gehört wohl innerhalb der <p> Tags?

Zum Grundlagen lernen:
Teil 1 kostenlos online lesen - Little Boxes - Webseiten gestalten mit HTML und CSS (von Peter Müller)

Gruß Manfred
Mit Zitat antworten
Sponsored Links
Antwort

Stichwörter
css, float

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Dingend Hilfe benötigt bei CSS Boxen für eine Wetterseite! Web4Live CSS 2 13.07.2011 16:01
Hilfe zum Anpassen einer CSS-Vorlage benötigt Sergeant CSS 5 15.11.2009 14:42
CSS Experten Hilfe benötigt! klappauge CSS 10 25.11.2007 13:37
Hilfe benötigt für template Anpassungen willi1 CSS 4 03.01.2007 09:51
hilfe benötigt tmp Site- und Layoutcheck 20 27.11.2006 21:16


Alle Zeitangaben in WEZ +2. Es ist jetzt 15:58 Uhr.