Css probleem

Gestart doorMikek30 reacties169 weergaven

31 berichten · pagina 1 van 3

Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
HAllo ik heb een stijl gemaakt teminste mijn eerste maar hij drawt alleen de achter grond

html 
    { 
         background-image: url(background.png); 
body 
    { 
     div#header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    div#body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       div#Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       div#tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }  
 
        
         
</html>


Wat doe ik fout?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
html{ sluit je niet af emo met }
en je gaat in een style gebruiken je zet divs in de body emo
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Okey en dit is gemaakt via een tut dus hoe moet het wel?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
is dit een CSS bestand of gwn tussen
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dit is een css bestand
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Habbeurs:
HAllo ik heb een stijl gemaakt teminste mijn eerste maar hij drawt alleen de achter grond

html 
    { 
         background-image: url(background.png); 
body 
    { 
     div#header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    div#body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       div#Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       div#tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }  
 
        
         
</html>


Wat doe ik fout?

dit moet je doen:

html 
    { 
         background-image: url(background.png); 
}
body 
    { 
     div#header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    div#body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       div#Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       div#tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ff testen
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
html 
    { 
         background-image: url(background.png); 
     }
     #header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    #body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       #Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       #tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }


moet je doen
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Doet het nog steeds niet en hoe werkt het danmet die divs?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
<style>
html 
    { 
         background-image: url(background.png); 
     }
     #header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    #body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       #Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       #tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }
</style>
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
met divs werkt het zo:

<div id="naam van CSS stukje">Teskt</div>


Of als er een . voor staat:

<div class="naam van CSS stukje met .">Tekst</div>


Als je een punt gebruikt, betekent dat dat je het vaker gaat gebruiken
met een # gebruik je hem maar 1 keer
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik weet niet of het aan mij licht maar hij drawt alleen de achtergrond
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
post je css(die je nu heb) en je html eens?
0
Mikek

Lid · Topicstarter

Berichten
3.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
css

html 
    { 
         background-image: url(background.png); 
     }
     #header 
    { 
        background-image: url(head.png); 
        padding-left: 115px; 
        padding-top: 118px; 
        width: 771px; 
        height: 159px; 
    } 
    #body
    {
        background-image: url(tekstvak1.png); 
        padding-top: 212px; 
        padding-left: 121px; 
        width: 582px; 
        height: 345px; 
    }  
       #Menu
        {
        background-image: url(menu.png); 
        padding-top: 212px; 
        padding-left: 742px; 
        width: 145px; 
        height: 361px; 
    }  
       #tekst
        {
        background-image: url(tekst.png); 
        padding-top: 591px; 
        padding-left: 111px; 
        width: 770px; 
        height: 141px; 
    }


index

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"> 
        <head> 
                <title>Site</title> 
                 
                <link rel="stylesheet" type="text/css" href="opmaak.css" /> 
        </head> 
         
        <body> 
        </body> 
         
</html>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
je doet
etc. niet emo
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren