Eirikg89 Skrevet 26. januar 2005 Del Skrevet 26. januar 2005 Hvordan klarer jeg å lage ne link som når man holder pila på den så kommer det nye linker under? Bare sånn helt enkelt. Lenke til kommentar
Marvil Skrevet 26. januar 2005 Del Skrevet 26. januar 2005 Her f.eks, ellers er Søkefunksjonen og Google undervurderte hjelpemidler her på forumet. Lenke til kommentar
melli123 Skrevet 26. januar 2005 Del Skrevet 26. januar 2005 Denne er jo fin da jeg vet ikke hvor flink du er med HTML og CSS jeg? ihvertfall, her er linken: LINK Lenke til kommentar
Eirikg89 Skrevet 27. januar 2005 Forfatter Del Skrevet 27. januar 2005 (endret) Linkene oppfører seg ikke som linker.. Med en gang jeg putter på flere en to så blir det ikke drop down linker noen av dem. man bare holder pila på den men ingenting skjer? Hva er feil i koden? <style type="text/css"> body {font-size:1%; color:#fff;} /*get rid of the IE bug that prints the the end of the !doctype */ .menu {display:none;} .holder {color:#000; width:96px; height:18px; display:block; background:#dca; border:1px solid #000; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:tahoma, vardana, arial, sans-serif; font-size:10px; line-height:18px; overflow:hidden;} .holder:hover {height:auto; cursor:pointer;color:#fff; background:#000;} a.inner, a.inner:visited {display:block; width:95px; height:18px; border-bottom:1px solid #000; text-decoration:none; color:#000; background:#eee;} a.inner:hover {background:#add;} </style> </head> <body> <div class="meny"><div class="menu"> <a class="outer" href="page1.html">MENU 1 <table><tr><td> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </td></tr></table> </a> <a class="outer" href="page1.html">MENU 2 <table><tr><td> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </td></tr></table> </a> </div> <div class="holder"> MENU 1<br /> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </div> <div class="holder"> MENU 2<br /> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </div><div class="menu"> <a class="outer" href="page1.html">MENU 1 <table><tr><td> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </td></tr></table> </a> <a class="outer" href="page1.html">MENU 2 <table><tr><td> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </td></tr></table> </a> </div> <div class="holder"> MENU 1<br /> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </div> <div class="holder"> MENU 2<br /> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </div><div class="menu"> <a class="outer" href="page1.html">MENU 1 <table><tr><td> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </td></tr></table> </a> <a class="outer" href="page1.html">MENU 2 <table><tr><td> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </td></tr></table> </a> </div> <div class="holder"> MENU 1<br /> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </div> <div class="holder"> MENU 2<br /> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </div><div class="menu"> <a class="outer" href="page1.html">MENU 1 <table><tr><td> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </td></tr></table> </a> </div> <div class="holder"> MENU 1<br /> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </div> </div> </div> </body> Endret 27. januar 2005 av Eirikg89 Lenke til kommentar
NisseMannH4X Skrevet 27. januar 2005 Del Skrevet 27. januar 2005 Tok meg ikke tid til å lese igjennom den koden din der, men har en super dropdown sak med en god css fil: html: <ul id=nav> <li>Link 1 <ul> <li><a href="">Sub 1</a></li> <li><a href="">Sub 2</a></li> <li><a href="">Sub 3</a></li> <li><a href="">Sub 4</a></li> </ul> </li> <li>Link 2 <ul> <li><a href="">Sub 1</a></li> <li><a href="">Sub 2</a></li> <li><a href="">Sub 3</a></li> <li><a href="">Sub 4</a></li> </ul> </li> CSS: ul { list-style: none; padding: 0; margin: 0; } #nav a { font-weight: bold; color: FFFFFF; } #nav a { text-decoration: none; } #nav li li a { display: block; font-weight: normal; background: #C3E5FE; color: white; padding: 0.2em 10px; } #nav li li a:hover { padding: 0.2em 10px; background: #FFFFFF; color: #C3E5FE; } li { float: left; position: relative; margin-top: 4px; width: 7em; text-align: center; cursor: default; font-family: "Verdana"; font-size: 11px; color: white; font-weight: bold; text-transform: uppercase; } li ul { display: none; position: absolute; top: 100%; left: 0; font-weight: normal; background-color: #C3E5FE; padding: 0.5em 0 1em 0; border-right: solid 1px #98D2FC; border-left: solid 1px #98D2FC; border-top: solid 1px #98D2FC; border-bottom: solid 1px #98D2FC; } li>ul { top: auto; left: auto; } li li {display: block; float: none; background-color: transparent; border: 0; } li:hover ul, li.over ul { display: block; } Dett fungerer! Lenke til kommentar
Eirikg89 Skrevet 27. januar 2005 Forfatter Del Skrevet 27. januar 2005 Vil bruke det jeg har! Denne koden bruker man når det bare er to drop downs(den fungerer fint) <style type="text/css"> body {font-size:1%; color:#fff;} /*get rid of the IE bug that prints the the end of the !doctype */ .menu {display:none;} .holder {color:#000; width:90px; height:18px; display:block; background:#dca; border:1px solid #000; margin-right:1px; text-align:center; float:left; text-decoration:none; font-family:tahoma, vardana, arial, sans-serif; font-size:10px; line-height:18px; overflow:hidden;} .holder:hover {height:auto; cursor:pointer;color:#fff; background:#000;} a.inner, a.inner:visited {display:block; width:89px; height:18px; border-bottom:1px solid #000; text-decoration:none; color:#000; background:#eee;} a.inner:hover {background:#add;} </style> <div class="menu"> <a class="outer" href="page1.html">MENU 1 <table><tr><td> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </td></tr></table> </a> <a class="outer" href="page1.html">MENU 2 <table><tr><td> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </td></tr></table> </a> </div> <div class="holder"> MENU 1<br /> <a class="inner" href="page1a.html">Page 1a</a> <a class="inner" href="page1b.html">Page 1b</a> <a class="inner" href="page1c.html">Page 1c</a> <a class="inner" href="page1d.html">Page 1d</a> <a class="inner" href="page1e.html">Page 1e</a> </div> <div class="holder"> MENU 2<br /> <a class="inner" href="page2a.html">Page 2a</a> <a class="inner" href="page2b.html">Page 2b</a> <a class="inner" href="page2c.html">Page 2c</a> <a class="inner" href="page2d.html">Page 2d</a> </div> Hvilken kode skal jeg da bruke hvis jeg skal ha 7 slike?(ikke to)??? Lenke til kommentar
NisseMannH4X Skrevet 27. januar 2005 Del Skrevet 27. januar 2005 ja, posta den som et eksempel på det du spurte om i topic! Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå