[HTML] probleem met list

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Jeroen

Jeroen

13/01/2008 16:19:00
Quote Anchor link
Beste phphulpers,

Toen ik vanmiddag een simpel menutje aan het maken was kwam ik op het volgende probleem, in alle browsers behalve IE wordt het menu goed weer gegeven, nu is mijn vraag of ik dit op een of andere manier op kan lossen.

HTML:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div id="navigation">
    <ul>
        <li><a href="#" class="toggle" id="nieuws">Nieuws</a></li>
        <ul style="padding:3px 0px 3px 20px;" id="nieuws_content">
            <li>Nieuws toevoegen</li>
            <li>Nieuws aanpassen</li>
            <li>Nieuws verwijderen</li>
            <li>Nieuws opties</li>
        </ul>
        <li>Hello</li>
        <li>Hello</li>
        <li>Hello</li>
    </ul>
    </div>


CSS:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
body { font-family:Verdana, Arial, Helvetica, sans-serif; }
#navigation ul { margin:0px; padding:0px; }
#navigation li { list-style:none; padding:5px; border:1px solid #CCCCCC; margin:1px; background-color:#FFFFFF; }
#navigation a { text-decoration:none; color:#000000; }
#navigation { float:left; width:220px; overflow:auto; font-size:10px; }


Hier kan je zien wat ik bedoel met mijn probleem: http://www.myconfero.net/php/

Alvast bedankt!

Jeroen
 
PHP hulp

PHP hulp

28/03/2024 20:15:52
 
Onbekend Onbekend

Onbekend Onbekend

13/01/2008 16:21:00
Quote Anchor link
Als je een '* ' voor je css atribuut zet dan pakt alleen IE die.
 
Jeroen

Jeroen

13/01/2008 16:25:00
Quote Anchor link
@Tommy, dat is leuk om te weten maar dit lost mijn probleem niet op!
 
Onbekend Onbekend

Onbekend Onbekend

13/01/2008 16:34:00
Quote Anchor link
* #navigation li ul { list-style:none; padding:5px; border-top:1px solid #CCCCCC; border-left:0px; border-right:0px; border-bottom:0px; margin:1px; background-color:#FFFFFF; }
 
Jeroen

Jeroen

13/01/2008 17:04:00
Quote Anchor link
@Tommy, sorry dat is niet wat ik zoek (en het werkt hier niet)!

Is er een andere oplossing?
 
Jeroen

Jeroen

14/01/2008 12:42:00
Quote Anchor link
*bump*
iemand een andere oplossing?
 
Robert Deiman

Robert Deiman

14/01/2008 13:15:00
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script language="javascript" type="text/javascript" src="mootools.js"></script>
<script>
window.addEvent('domready', function()
{
    var getSlides = $$('.toggle');
        getSlides.each(    
            function(slider)
            {
                slider.fx = new Fx.Slide(slider.id + '_content');
                slider.addEvent('click', function(e){
                    e = new Event(e);
                    
                    this.fx.toggle();

                    e.stop();
                });
            });
            
});
</script>

<style type="text/css">
body { font-family:Verdana, Arial, Helvetica, sans-serif; }
#navigation ul { margin:0px; padding:0px; }
#navigation li { list-style:none; padding:5px; border:1px solid #CCCCCC; margin:1px; background-color:#FFFFFF; }
#navigation a { text-decoration:none; color:#000000; }
#navigation { float:left; width:220px; overflow:auto; font-size:10px; }
</style>
</head>

<body>

    <div id="navigation">
    <ul>
        <li><a href="#" class="toggle" id="nieuws">Nieuws</a></li>
        <li style="border:0px;"><ul style="padding:3px 0px 3px 20px;border:0px;" id="nieuws_content">
            <li>Nieuws toevoegen</li>
            <li>Nieuws aanpassen</li>
            <li>Nieuws verwijderen</li>
            <li>Nieuws opties</li>
        </ul>
        </li>
        <li>Hello</li>
        <li>Hello</li>
        <li>Hello</li>
    </ul>
    </div>

</body>
</html>
Gewijzigd op 01/01/1970 01:00:00 door Robert Deiman
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.