AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Positionieren mit CSS

Ein Thema von Alexander · begonnen am 28. Aug 2006 · letzter Beitrag vom 1. Sep 2006
 
Alexander

Registriert seit: 28. Aug 2002
Ort: Oldenburg
3.513 Beiträge
 
Turbo Delphi für .NET
 
#1

Positionieren mit CSS

  Alt 28. Aug 2006, 20:01
Hallo,
ich bin gerade dabei eine Website ohne Tabellen, dafür aber mit Div's aufzubauen. Klappt so weit auch schon ganz gut, nur zerpflückt der FireFox mir die Seite etwas. Soll heißen, dass links und rechts sowie oben und unten ein kleiner weißer Rand zwischen dem mittleren und dem äußeren Div bleibt. Im Internet Explorer rutscht das mitlere Div sogar ganz nach unten.
Ich hänge beide Fehler mal als Screenshot an. Dann sollte man das Problem erkennen können.

Wie kann ich den Fehler beheben?

Das CSS:
Code:
* {
   text-align: left;
   border: none;
   font-family: Verdana, Helvetica, Sans-Serif;
}

div#container {
   margin: auto;
   width: 640px;
   height: 437px;
   padding : 0px;
}

div#header {
   background-image: url(../images/header.jpg);
   background-repeat: no-repeat;   
   width:640;
   height: 83px;   
}

div#navBar {
   background-image: url(../images/nav.jpg);
   background-repeat: repeat-x;   
   width:640;
   height: 27px;
}


div#left {
   background-image: url(../images/left.jpg);
   background-repeat: no-repeat;   
   float: left;   
   width: 7px;
   height:306px;
}

div#content {
   background-image: url(../images/contentbg.jpg);
   background-repeat: repeat-x;   
   width:640px;
   height: 306px;
   color: #71737A;
   font-size:10pt;
   text-align: justify;
   /* overflow:auto;*/ 
}

div#right {
   background-image: url(../images/right.jpg);
   background-repeat: no-repeat;   
   float:right;
   width: 8px;
   height:306px;
}

div#footer {
   background-image: url(../images/footer.jpg);
   background-repeat: no-repeat;   
   width: 640px;
   height: 22px
}

h1 {
   color: #213D96;
   font-size: 12pt;
   letter-spacing: 0.1em;
     list-style-image:url(../images/dot.gif);   
}
Die HTML-Seite
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
  <head>
    <style type="text/css" media="all">@import "style/main.css";</style>
  </head>
  <body>
    <div id="container">
      <div id="header"></div>
      <div id="navBar"></div>

      <div id="left"></div>
      <div id="right"></div>
      <div id="content">
        <h1>Herzlich willkommen!</h1>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laore
et dolore magna aliquam erat volutpat.


Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat.





Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat, duis autem vel
eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla
facilisis at vero et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.





     </div>

      <div id="footer"></div>
    </div>
  </body>
</html>
An den Spaces in den Div's ("") liegt es auch nicht. Wäre toll, wenn ihr einen Ansatz habt!

Vielen Dank für eure Antworten.
Alexander
Angehängte Grafiken
Dateityp: jpg ie_751.jpg (47,4 KB, 89x aufgerufen)
Dateityp: jpg firefox_191.jpg (34,3 KB, 87x aufgerufen)
Alexander
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine 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

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:51 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz