+ Antworten
Ergebnis 1 bis 14 von 14

Thema: Website mittig setzen und das sie sich am Browser anpasst

  1. #1
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6

    Website mittig setzen und das sie sich am Browser anpasst

    Webside mittig setzen und das sie sich am Browser anpasst.
    Hallo zusammen,
    habe eine homepage für mein fußball club erstellt nun habe ich das problem das ich die seite nicht mittig bekomme und sie sich nicht den browser anpasst.
    kann mir jemand weiterhelfen?
    www.fortunaessen.de

    Danke

  2. #2
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6

    Question

    Hilfe!

  3. #3
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6
    <!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">
    <head>
    <title>Vor-Start</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <!-- ImageReady Styles (Vor-Start.psd) -->
    <style type="text/css">
    <!--

    #Tabelle_01 {
    position:absolute;
    left:0px;
    top:0px;
    width:1280px;
    height:1024px;
    }

    #Phone-1_ {
    position:absolute;
    left:0px;
    top:0px;
    width:1280px;
    height:217px;
    }

    #Vor-Start-02_ {
    position:absolute;
    left:0px;
    top:217px;
    width:428px;
    height:200px;
    background-color:#120C0E;
    }

    #Logo-Phone_ {
    position:absolute;
    left:428px;
    top:217px;
    width:367px;
    height:501px;
    }

    #Vor-Start-04_ {
    position:absolute;
    left:795px;
    top:217px;
    width:485px;
    height:807px;
    background-color:#120C0E;
    }

    #Phone-2_ {
    position:absolute;
    left:428px;
    top:718px;
    width:367px;
    height:108px;
    }

    #index-06_ {
    position:absolute;
    left:428px;
    top:826px;
    width:31px;
    height:198px;
    }

    #Button-Webside_ {
    position:absolute;
    left:459px;
    top:826px;
    width:303px;
    height:46px;
    }

    #index-08_ {
    position:absolute;
    left:762px;
    top:826px;
    width:33px;
    height:198px;
    }

    #Vor-Start-09_ {
    position:absolute;
    left:459px;
    top:872px;
    width:303px;
    height:152px;
    background-color:#120C0E;
    }

    -->
    </style>
    <!-- End ImageReady Styles -->
    </head>
    <body style="background-color:#120C0E;">

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <div class="fb-like" data-href="http://www.fortunaessen.de" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true" data-font="verdana"></div>

    <!-- ImageReady Slices (Vor-Start.psd) -->
    <div id="Tabelle_01">
    <div id="Phone-1_">
    <img id="Phone_1" src="/bilder/phone_1.jpg" width="1280" height="217" alt="Phone_1" />
    </div>
    <div id="Logo-Phone_">
    <img id="Logo_Phone" src="/bilder/logo_phone.jpg" width="367" height="501" alt="Logo_Phone" />
    </div>
    <div id="Vor-Start-04_">
    </div>
    <div id="Phone-2_">
    <img id="Phone_2" src="/bilder/phone_2.jpg" width="367" height="108" alt="Phone_2" />
    </div>
    <div id="index-06_">
    <img id="index_06" src="/bilder/index_06.jpg" width="31" height="198" alt="" />
    </div>
    <div id="Button-Webside_">
    <a href="http://www.fortunaessen.de/index2.html">
    <img id="Button_Webside" src="bilder/button_webside.jpg" width="303" height="46" border="0" alt="Button_Webside" /></a>
    </div>
    <div id="index-08_">
    <img id="index_08" src="/bilder/index_08.jpg" width="33" height="198" alt="" />
    </div>
    <div id="Vor-Start-09_">
    <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.fortunaessen.de&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:80px;" allowTransparency="true"></iframe>
    </div>
    </div>
    <!-- End ImageReady Slices -->
    </body>
    </html>

  4. #4
    TP-Junior Nilix313 macht alles soweit korrekt
    Registriert seit
    Aug 2005
    Beiträge
    24
    hallo,

    am besten machst du einen hauptcontainer in dem alle anderen divs drin liegen und den mittest du so aus.

    #container {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    }


    also margin left und right auf auto setzt den div mittig.
    Geändert von Nilix313 (31.01.2012 um 16:17 Uhr)

  5. #5
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6
    Danke hat funktioniert bis auf den Facebook Button, da vill. noch eine Idee
    www.fortunaessen.de

  6. #6
    TP-Junior Nilix313 macht alles soweit korrekt
    Registriert seit
    Aug 2005
    Beiträge
    24
    womit arbeitest du? wer schreibt denn den code so verschachtel?

    <div id="container">
    <img id="container " src="/bilder/phone_1.jpg" width="1280" height="217" alt="Phone_1" />
    <img id="container " src="/bilder/logo_phone.jpg" width="367" height="501" alt="Logo_Phone" />
    <img id="container " src="/bilder/phone_2.jpg" width="367" height="108" alt="Phone_2" />
    &nbsp;
    <a href="http://www.fortunaessen.de/index2.html">
    <img id="container " src="bilder/button_webside.jpg" width="303" height="46" border="0" alt="Button_Webside" /></a>

    tttttttt
    </div>


    das sollte den selben effekt haben und ist wesentlich übersichtlicher. wenn du den code von deinem fb-button in den div container legst, sollte der auch mittig sein.

  7. #7
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6
    hii habe die seite erst mit photoshop erstellt und beareite sie mit expression web weiter
    jetzt habe ich alles durch einander fb button ist immer nonch ganz rechts...oje :-(

  8. #8
    TP-Junior Nilix313 macht alles soweit korrekt
    Registriert seit
    Aug 2005
    Beiträge
    24
    ich sehs gerade, kein problem, ich schaus mir nochmal an.... der button liegt in einem iframe, also must du per css anweisung den iframe mittig setzen

  9. #9
    TP-Junior Nilix313 macht alles soweit korrekt
    Registriert seit
    Aug 2005
    Beiträge
    24
    also, bring mal "phone_1.jpg" auch auf eine breite von 367 pixel....

    Dann kannst den code auf das zusammenkürzen

    <div id="container">
    <img src="bilder/phone_1.jpg"/>
    <img src="bilder/logo_phone.jpg"/>
    <img src="bilder/phone_2.jpg"/>
    <img src="bilder/button_webside.jpg" />
    </div>

    und die css anweisung sollte so aussehen

    #container {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    width: 376px;
    }

  10. #10
    S04
    S04 ist offline
    TP-Junior S04 macht alles soweit korrekt
    Registriert seit
    Jan 2012
    Beiträge
    6

    Thumbs up

    Ich DANKE dir rechtherzlich ohne dich hätte ich das nicht geschafft danke nochmals THX

  11. #11
    TP-Junior Nilix313 macht alles soweit korrekt
    Registriert seit
    Aug 2005
    Beiträge
    24
    keine ursache

  12. #12
    TP-Member JohnReinert macht alles soweit korrekt
    Registriert seit
    Apr 2007
    Beiträge
    78
    Mit dem Code
    margin: 0px Auto;
    erhalte ich eine Horizontale Zentrierung hin, wie Kriege ich das mit css3 vertikal hin?

  13. #13
    TP-Veteran max.m lebt für das TP und seine User max.m lebt für das TP und seine User max.m lebt für das TP und seine User max.m lebt für das TP und seine User max.m lebt für das TP und seine User max.m lebt für das TP und seine User Avatar von max.m
    Registriert seit
    Dec 2005
    Ort
    Stuttgart
    Beiträge
    1.955
    Hier sind 2 Methoden zur horizontalen und vertiaklen Zentrierung beschrieben:

    http://www.ohne-css.gehts-gar.net/0002.php

  14. #14
    TP-Member JohnReinert macht alles soweit korrekt
    Registriert seit
    Apr 2007
    Beiträge
    78
    *{
    margin: 0px auto;
    padding: 0px;
    border: none;
    outline: 0;
    font-size: 100%;
    background: transparent;
    }

    html{
    background: #E2E2DA;}

    body {
    font-family: Georgia, serif;
    font-size: 2ex;
    margin: 0px auto;
    padding: 0px;
    width: 100%;
    height: 100%;
    margin: 0px auto;
    line-height: 1;}

    #container{
    margin: 0px auto;
    display: block;
    position: relative;
    height: 500px;
    width: 650px;
    clear: left;
    background: #C9D3C8;
    border-color: #ffffff;
    border-style: 2px solid;
    -moz-border-radius:10px; /* Firefox */
    -webkit-border-radius:10px; /* Safari, Chrome */
    -khtml-border-radius:10px; /* Konqueror */
    border-radius:10px; /* CSS3 */
    -moz-box-shadow: 0px 0px 5px #21303b;
    -khtml-box-shadow: 0px 0px 5px #21303b;
    -webkit-box-shadow: 0px 0px 5px #21303b;
    }

    header{
    padding-top: 10px;}

    nav{
    width: 620px;
    height: 60px;
    position: relative;
    background-color: #21303b;
    margin-top: 10px;
    color: #ffffff;
    font-size: 40px;
    text-shadow: #ffffff 3px 3px 5px
    -moz-border-radius:10px; /* Firefox */
    -webkit-border-radius:10px; /* Safari, Chrome */
    -khtml-border-radius:10px; /* Konqueror */
    border-radius:10px; /* CSS3 */}

    #content{
    margin: 0px auto;
    width: 620px;
    height: 400px;
    clear: left;
    color: #ffffff;
    background-color: #21303b;
    border-style: 1px solid;
    border-color: white;
    -moz-border-radius:10px; /* Firefox */
    -webkit-border-radius:10px; /* Safari, Chrome */
    -khtml-border-radius:10px; /* Konqueror */
    border-radius:10px; /* CSS3 **/}

    #teaser{
    margin: 0px auto;
    width: 600px;
    height: 40px; }
    Hm, irgendwo steckt ein Fehler doch ich sehe diesen nicht....

+ Antworten

Ähnliche Themen

  1. Antworten: 7
    Letzter Beitrag: 30.10.2007, 15:49
  2. Website mittig ausrichten?
    Von Corinna Scharf im Forum Webdesign allgemein
    Antworten: 2
    Letzter Beitrag: 02.05.2007, 10:05
  3. Seite im Browser mittig
    Von StevieArt im Forum GoLive
    Antworten: 3
    Letzter Beitrag: 23.12.2005, 22:55
  4. dynamischer flashfilm der sich versch. Auflösungen anpasst?
    Von stuarrdo im Forum Flash & Multimedia
    Antworten: 8
    Letzter Beitrag: 27.05.2004, 16:06
  5. playerstart mittig auf desktop setzen
    Von m72 im Forum Flash & Multimedia
    Antworten: 1
    Letzter Beitrag: 19.07.2002, 12:16

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

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 40 41 42 43 44 45 46 47 48 49 50 51