ausrichtungs problem

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • ausrichtungs problem

    hallo,

    ich habe für unsere schule eine Homepage designt und erstmal dafür das grundgerüst gecodet. Nun meine Frage ich würde die Page gerne zentrieren aber das problem ist das ich zur zeit das logo mit position:absolute ausrichte und wenn ich die page jetzt zentriere ist das logo nur statisch wie kann ich das so machen das dass immer da oben in der ecke bleibt?


    Homepage

    index.php

    PHP-Code:
    <html>
    <
    head>
    <
    title>"SCHOOL FORMS LIVE" ...WE FORMS SCHOOL!</title>
    <
    link rel="stylesheet" type="text/css" href="include/style.css">
    </
    head>
    <
    body>
    <
    div class="main">
      <
    div class="oben">
        <
    div class="content1"></div>
        <
    div class="content2">
          <
    div class="maincontent">
            <
    div class="textcontent">Text und so ....</div>
          </
    div>
        </
    div>
        <
    div class="clear"></div>
      </
    div>
      <
    div class="navi"><img src="images/navi.jpg" width="796" height="38" border="0" alt="" /></div>
    </
    div>
    <
    div class="logo"><img src="images/logo.png" width="211" height="129" border="0" alt="" /></div>
    </
    body>
    </
    html

    und die style.css


    PHP-Code:
    htmlbody {
      
    height100%;
      }
      
    body {
      
    margin0;
      
    background-imageurl(../images/bodybg.jpg);
      }
      
    .
    logo {
      
    positionabsolute;
      
    left28px;
      
    top24px;
      }
      
    .
    main {
      
    positionabsolute;
      
    top40px;
      
    left50px;
      
    width796px;
      
    min-height100%;
      
    border2px solid #000000;
      
    }
      
    .
    oben {
      
    width796px;
      
    min-height558px;
      
    backgroundurl(../images/hauptbg.jpgno-repeat left bottom #ffffff;
      
    }
      
    .
    navi {
      
    width796px;
      
    height38px;
      }
      
    .
    content1 {
      
    floatleft;
      
    width167px;
      
    min-height558px;
      }
      
    .
    content2 {
      
    floatleft;
      
    width629px;
      
    min-height558px;
      }
      
    .
    maincontent {
      
    clearboth;
      
    margin-top5px;
      
    margin-bottom5px;
      
    width620px;
      
    min-height544px;
      
    background#d3d3d3 url(../images/contentbg.jpg) no-repeat right bottom;
      
    border2px solid #000000;
      
    }
      
    .
    textcontent {
      
    margin10px;
      }
      
    .
    clear {
      
    height0;
      
    clearboth;

    danke schon mal für die hilfe.

    Mfg Snaq
    Zuletzt geändert von Snaq; 27.02.2008, 20:05.

  • #2
    du kannst z.b. das logo als hintergrundbild für div.main nehmen und dem div ein padding geben. da gibt es viele möglichkeiten.

    gruß
    peter
    Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
    Meine Seite

    Kommentar


    • #3
      ja danke, habe das logo jetzt mit in content1 reingenommen und postion: relativ gemacht und somit ausgerichtet, funzt perfekt.

      ~close

      Kommentar

      Lädt...
      X