(opdateret 10. sept.) Eric A. Meyer har på sit css/edge site lavet en side hvor han demonstrerer hvordan man kan lave folde-ud menuer i CSS2 helt uden brug af scripting! Da det kræver både kræver support af > selector og :hover "pseudo klassen" på alle elementer (ikke kun links), så er det stadig et fåtal af browsere som menuen fungerer i. Det er med andre ord mere interessant som en teknologisk demonstration af fremtidens muligheder med CSS end det er praktisk anvendeligt lige her og nu. Men menuen er testet succesfuldt i Mozilla 1.0 og i Netscape 7. Konqueror version 2.2 og 3 understøtter både :hover pseudo klasse på alle elementer og > selector, men i praksis fungerer menuen alligevel ikke helt i disse browsere (tak til Jonas Koch Bentzen for info om Konqueror 3).

Links:
css/edge, Pure CSS menus eksempel på css/edge, Peter-Paul Koch's CSS2 support chart

Comments

Write a comment... 

 

There are no comments to this post

Only Name and Comment are required fields when commenting here. If you specify your email address, everyone will be able to find it at your comment. However your email will only be directly visible when hovering over your name, and in the code behind it will not look like an email address. So the risk of bots harvesting email addresses here, should be minimal. But again, you are free to leave the email blank when commenting.

If you tick Remember me, your name, email and homepage address will be remembered and prefilled at your next visit (Uses a cookie when ticked).

Full URLs (starting with "http://" or "https://") in comment text will be converted into active links when comment has been verified by a human as not being spam. Comments that looks too much like spam, will immidiately/proactively be rejected by the system and never reach a human eye.