1. #1
    Avatar von Killerspider
    Registriert seit
    19.11.2011
    Beiträge
    387
    Thanked 169 Times in 128 Posts

    Standard CSS Header Zentrieren

    Hay ich habe ein problem undzwar habe ich ein Header auf meiner Homepage eingefügt dies hat auch alles 1a geklappt
    nur jetzt wiederholt sich das header was eig nicht sein kann ...

    kann mir jemand helfen?


    @charset "utf-8";
    /* CSS Document */

    body {
    background-color: #333333;
    background-image: url('Bilder/DDvX_bg.jpg') ;
    background-attachment:fixed;
    background-position: 50% 0%;
    background-repeat:no-repeat;
    margin:0;
    padding:0;
    }

    td
    {
    font-family: Verdana;
    font-size: 12px;
    color: #FFF;
    }

    a, #left_col .Cmite a, #left_col .Cnorm a, #left_col .Cdark a
    {
    color: #c16113;
    font-family: Verdana;
    font-size: 11px;
    text-decoration: none;
    }

    a.
    {
    color: #666;
    }

    a:hover
    {
    text-decoration: none;
    }

    a.box
    {
    color: #c16113;
    font-family: Verdana;
    font-size: 11px;
    text-decoration: underline;
    }

    a.box:hover
    {
    text-decoration: none;
    color: #39F;
    }

    .Chead
    {
    background: #333;
    color: #111;
    }

    .Chead a
    {
    color: #c16113;
    }

    .Chead td, .Chead td strong, .Chead h4, .Chead td b
    {
    background: #16639b;
    color: #9dbdd4;
    }

    .Callg
    {
    background-color: #EFEFEF;
    color: #FFF;
    }

    .Callg td
    {
    color: #000000;
    }

    .Cnorm
    {
    background-color: #666;
    }
    .Cmite
    {
    background-color: #999;
    }
    .Cdark
    {
    background-color: #222;
    }

    .rand
    {
    border: solid #222 1px;
    }

    .smalfont
    {
    font-size: 10px;
    text-decoration: none;
    }

    .border
    {
    background-color: #CCC;
    }
    hr
    {
    height: 0px;
    border: solid #003366 0px;
    border-top-width: 1px;
    }

    input, textarea, select
    {
    color: #000000;
    font: 12px Verdana;
    border-color: #185685;
    border-width: 1px;
    border-style: solid;
    font-weight: none;
    text-decoration: none;
    background-color: #EFEFEF;
    }


    da ist die style.css

  2. #2

    Registriert seit
    01.07.2011
    Beiträge
    103
    Thanked 54 Times in 45 Posts

    Standard CSS Header Zentrieren

    wieso setzt du des header bild im body?

    background-repeat: none;
    damit wiederholt es sich nimmer.

  3. #3

    Registriert seit
    31.01.2011
    Beiträge
    20
    Thanked 76 Times in 49 Posts

    Standard CSS Header Zentrieren

    Mach den Header doch einfach in 'ne div Box rein, habe noch nie gesehen das man den in den body wirft^^
    There are only 10 types of people in the world: those who understand binary, and those who don't

  4. #4
    Avatar von exception
    Registriert seit
    27.03.2012
    Beiträge
    198
    Thanked 57 Times in 36 Posts

    Standard CSS Header Zentrieren

    PHP-Code:
    body {
    margin0;
    padding0;
    }

    #header {
    width100%;
    height30px//Musst du wissen
    backgroundurl('Bilder/DDvX_bg.jpg'no-repeat;

    Und einfach mit
    PHP-Code:
    <div id="header">Header Inhalt</div
    in HTML aufrufen.

    Deine Methode ist ziemlich komisch.^^

    MfG

Ähnliche Themen

  1. (S) mini Header
    Von ElkosMED im Forum Digitale Bild- und Videobearbeitung
    Antworten: 2
    Letzter Beitrag: 06.03.2014, 00:52
  2. TrackMania Header.
    Von Shane im Forum Angebot & Nachfrage
    Antworten: 1
    Letzter Beitrag: 05.11.2012, 16:13
  3. AccountBörse Header.
    Von cemt im Forum Showroom
    Antworten: 6
    Letzter Beitrag: 17.08.2012, 22:15
  4. Text zentrieren
    Von Skindred im Forum HTML
    Antworten: 2
    Letzter Beitrag: 16.04.2012, 18:00
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.