[Help] Hoe komt dit goed?

Gestart doorArjann7 reacties33 weergaven

8 berichten · pagina 1 van 1

Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
#box1 {background: url(images/box1.png); width: 210px; height: 200px; margin:0px 0px 0 0px;}
#box2 {background: url(images/box2.png); width: 210px; height: 200px; margin:0px 0px 0 225px;}
#box3 {background: url(images/box3.png); width: 210px; height: 200px; margin:0px 0px 0 226px;}
#box4 {background: url(images/box4.png); width: 210px; height: 200px; margin:0px 0px 0 227x;;}


<div id="box1"><div>
    <div id="box2"><div>
    <div id="box3"><div>
    <div id="box4"><div>

</div>


Ik krijg niet 4 van die blokjes naast elkaar : zie http://bit.ly/vdv4xY

Heeft iemand goede code, of oplossing?
0
Wdbs

Lid

Berichten
2.512
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat moet er anders dan?
0
Berichten
787
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
#box1 {background: url(images/box1.png); width: 210px; height: 200px; margin:0px 0px 0 0px;}
#box2 {background: url(images/box2.png); width: 210px; height: 200px; margin:0px 0px 0 225px;}
#box3 {background: url(images/box3.png); width: 210px; height: 200px; margin:0px 0px 0 226px;}
#box4 {background: url(images/box4.png); width: 210px; height: 200px; margin:0px 0px 0 227px;}


En waarom heb je

<div id="box1"><div>
    <div id="box2"><div>
    <div id="box3"><div>
    <div id="box4"><div>


In plaats van

<div id="box1"></div>
    <div id="box2"></div>
    <div id="box3"></div>
    <div id="box4"></div>
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja maar nu staan ze onder elkaar?
Weetje toevallig wat ik moet instellen bij ditbij ze alle 4?: margin:0px 0px 0 0px;}
0
Berichten
787
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan moet je je margin gewoon wat veranderen, het punt is dat je bij div4 margin:0px 0px 0 227x;;} had staan, dit klopt niet. ;]
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
float: left; toevoegen.
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je wilt ze naast elkaar?
float: left;
0
Arjann

Lid · Topicstarter

Berichten
2.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dankje, is gelukt.
Slotje mag erop
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