[CSS] grafik in css und im div °_°

Dieses Thema im Forum "Webdesign" wurde erstellt von iNkY-, 5. Januar 2010 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 5. Januar 2010
    grafik in css und im div °_°

    Hallo ich habe folgendes Problem.
    ich habe in einer css datei eine container gemacht von dem ein bild der hintergrund ist.

    jetzt will ich diesen container, aber mittig auf meiner seite haben. wie mache ich das?

    hier mein code:
    Code:
    html, body {
     width:1024px;
     height:768px;
     }
    
     #head {
     background-image:url(Bilder/pokerfire.gif);
     background-position:center;
     background-repeat:no-repeat;
     background-color:black;
     width:100%;
     height:14%;
     border:1px;
     }
    html code:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta name="author" content="">
    <meta name="editor" content="html-editor phase 5">
    <link rel="stylesheet" type="text/css" href="styles.css">
    </head>
    <body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
    <div id="head"></div>
    
    </div>
    </body>
    </html>
    danke
     
  2. 5. Januar 2010
    AW: grafik in css und im div °_°

    HTML:
    <html>
     <head>
     <title>[CSS] - grafik in css und im div &deg;_&deg;</title>
     
     <style type="text/css">
     html {
     background-color: #000;
     }
    
     body {
     width: 1024px;
     margin: auto; /* Auto Center Left/Right */
     }
    
     a, a:visited, a:hover, a:active { 
     color: #f00;
     }
    
     #head {
     background: #0f0 url('bilder/pokerfire.gif') top center no-repeat; /* Replace #0f0 to "transparent" (Without Quotes) or #000 */
     width:100%;
     height:14%;
     border:1px;
     }
     </style>
     </head>
     
     <body>
    
     <div id="head"></div>
     <a href="#link">Link</a>
    
     </body>
    </html>
     
  3. 6. Januar 2010
    AW: grafik in css und im div °_°

    hat geklappt yo. bewertung ist raus
     
  4. 6. Januar 2010
    AW: grafik in css und im div °_°

    close
     
  5. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.