Html foutke

Gestart doorJanm5 reacties37 weergaven

6 berichten · pagina 1 van 1

Janm

Lid · Topicstarter

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Alleee mannekes.

Ik heb een foutje in mijn scriptje.
Hij breekt divs af. Voorbeeld: http://www.saliox.s2.one2xs.com/f.png
Hij moet ze allemaal mooi naast mekaar weergeven en als er 1 niet past dan op een volgende regel.

Hoe fix ik dit?
Code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]TITLE[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]Tags ophalen[/COLOR][COLOR= #007700]);[/COLOR]
?>
    <script type="text/javascript"> 
        Cufon.replace(h1, { fontFamily: Calibri });
    </script>
<h1>Leden houden van...</h1>
[COLOR= #0000BB]<?php
$vQuery[/COLOR]  [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM tags ORDER BY RAND() DESC LIMIT 20"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$vQuery[/COLOR][COLOR= #007700])){[/COLOR]
?>
        <style>

.tag-l{
    background: url(../images/tag-l.jpg) no-repeat;
    width: 18px;
    height: 23px;
    color: #996633;
    weight: bold;
    float: left;
}

.tag-m{
    background: url(../images/tag-m.jpg) repeat-x;

    color: #996633;
    font-weight: bold;
    float: left;
    padding-left: 2px;
    padding-top: 4px;
    height: 23px;

}

.tag-r{
    background: url(../images/tag-r.jpg) no-repeat;
    width: 14px;
    height: 23px;
    color: #996633;
    weight: bold;
    float: left;

}
        </style>
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
<div>
<div class="tag-l"></div>
<div class="tag-m">[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$vFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tag[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]</div>
<div class="tag-r"></div></div>

[/COLOR][COLOR= #007700];

}[/COLOR]
?>
<br /><br />




[COLOR= #0000BB]<?php[/COLOR]

?>


Beloning: 0.3 punten.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Al die tags in 1 div zetten dus: tag-hoofd en daar zet je dan ook een float left bij.
0
Janm

Lid · Topicstarter

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Gelukt.
Punten paas ik je!
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dankjewel biggrin Ben benieuwd hoe die site eruit gaat zien.
0
Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wow het wordt al mooi :3
0
Janm

Lid · Topicstarter

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ben er weer een beetje mee bezig sinds vandaag. Was ff druk etc. biggrin
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