2 vragen

Gestart doorErik24 reacties46 weergaven

25 berichten · pagina 1 van 2

Erik

Lid · Topicstarter

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,

Ik heb even twee vragen.
De eerste:
Hoe kan ik om en om kleuren doen? (Net zoals hier het ticketsysteem)
Ik heb dit scriptje:

[COLOR= #0000BB]<?php
                $query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT id, naam FROM cms_categorieen"[/COLOR][COLOR= #007700]);[/COLOR]
                
                [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]))
                {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]paginas?categorie=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</a></li>[/COLOR][COLOR= #007700];
                }[/COLOR]
                ?>


Maar ik wil hebben dat hij om en om bij de
  • tag, dat hij van de li tag dit maakt:

  • Vraag 2:
    Ik heb een CSS tabel gemaakt, in Opera en in Firefox werkt hij goed maar in IE8 niet.
    De code:

    #tabel_naam { width: 110px; height: 21px; border: 1px dotted #102b34; float: left; font-style: italic; line-height: 21px; text-align: center; }
    #tabel_avatar { width: 110px; border-left: 1px dotted #102b34; border-bottom: 1px dotted #102b34; border-right: 1px dotted #102b34; float: left; margin-top: 23px; margin-left: -594px; }
        #tabel_avatar img { margin: 5px; }
    #tabel_titel { width: 476px; height: 21px; padding-left: 5px; border-top: 1px dotted #102b34; border-right: 1px dotted #102b34; border-bottom: 1px dotted #102b34; float: left; font-style: italic; line-height: 21px; }
    #tabel_bericht { width: 476px; min-height: 110px; border-right: 1px dotted #102b34; border-bottom: 1px dotted #102b34; margin-left: 117px; padding-top: 0px; }


    Zo hoort hij te zijn:
    Afbeelding

    En zo is hij in IE8:
    Afbeelding

    Ook wil ik bij de tabel hebben dat de avatar meerekt met de lengte van de bericht div.

    Groet,

    Erik.
  • 0
    Berichten
    35.796
    Reputatie
    1
    Punten
    0,00
    Lid sinds
    Laatst gezien
    1.

    [COLOR= #0000BB]<?php
    $i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700](...)
    {[/COLOR]
    
      [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++ %[/COLOR] [COLOR= #0000BB]2[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
      {[/COLOR]
    
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li id="oranje">[/COLOR][COLOR= #007700];
    
      }[/COLOR]
      [URL="http://www.php.net/else"]else[/URL]
      [COLOR= #007700]{[/COLOR]
    
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li>[/COLOR][COLOR= #007700];
    
      }
    
    }[/COLOR]
    ?>


    Dat? biggrin
    0
    Erik

    Lid · Topicstarter

    Berichten
    7.109
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Bedankt, alleen nog vraag 2. smile
    0
    Miel

    Lid

    Berichten
    4.462
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Lol, id? Das wel slecht van je.clown Want als je nu meerdere lis doet, met id oranje, is je pagina niet meer valid.
    0
    Remi

    Lid

    Berichten
    1.270
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Miel schreef:
    Lol, id? Das wel slecht van je.clown Want als je nu meerdere lis doet, met id oranje, is je pagina niet meer valid.
    Ach, het werkt wel.. Maar class is beter ja smile
    0
    Berichten
    509
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Help Erik ff, ik heb dr ook baat bij biggrin.
    0
    Berichten
    20.364
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Ik wil die lijnen ook , Hoe doe je dat?
    0
    Berichten
    46
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Shahiem schreef:
    Ik wil die lijnen ook , Hoe doe je dat?
    border: 1px dotted;
    0
    Erik

    Lid · Topicstarter

    Berichten
    7.109
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Weet iemand antwoord op vraag 2?
    0
    Berichten
    20.364
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Lorenze moet het niet in div ofzo zijn of in tabel?
    0
    Berichten
    592
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Volgens mij moet je dan het volgende nog in je CSS zetten:

    overflow: hidden;
    0
    Erik

    Lid · Topicstarter

    Berichten
    7.109
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Het is helaas geen overflow hidden.
    Iemand nog een oplossing?
    0
    Berichten
    15.446
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    bij tabel_bericht ook een float: left; zetten?
    0
    Erik

    Lid · Topicstarter

    Berichten
    7.109
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Nu bugged ie helemaal, in IE staat hij nu niet meer langs elkaar.
    Hoe kan ik dat fixen?

    Codeblok (CSS):

    1
    2
    3
    4
    5

    #tabel_naam { width: 110px; height: 21px; border: 1px dotted #102b34; float: left; font-style: italic; line-height: 21px; text-align: center; }
    #tabel_avatar { width: 110px; border-left: 1px dotted #102b34; border-bottom: 1px dotted #102b34; border-right: 1px dotted #102b34; float: left; margin-top: 23px; margin-left: -594px; }
    #tabel_avatar img { margin: 5px; }
    #tabel_titel { width: 476px; height: 21px; padding-left: 5px; border-top: 1px dotted #102b34; border-right: 1px dotted #102b34; border-bottom: 1px dotted #102b34; float: left; font-style: italic; line-height: 21px; }
    #tabel_bericht { width: 476px; min-height: 133px; float: left; border-right: 1px dotted #102b34; border-bottom: 1px dotted #102b34; padding: 0px; }
    0
    Rik

    Lid

    Berichten
    18.393
    Reputatie
    0
    Punten
    0,04
    Lid sinds
    Laatst gezien
    JE kunt het dirty doen net als ik en net als one2xs doet, en in plaats van een border met css te doen, een border in een plaatje te gebruiken 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