Reply
Single dropdown
Old 04-07-2007, 08:12 AM Single dropdown
Sydpix's Avatar
Ultra Talker

Posts: 374
Name: Denny
Location: In a can...
Anyone have an idea how http://www.webstandards.org made that fancy skip to content menu?
__________________
.
++
Ì lðvê †ð hå¢k ¢§§ þhþ åñÐ h†ml ++
Sydpixel.
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
When You Register, These Ads Go Away!
Old 04-07-2007, 08:29 AM Re: Single dropdown
Extreme Talker

Posts: 166
Easy. You could've just looked at the source, but I'll explain the gist. The contents is always there, it just fades in with the background colourwise. Open the page press ctrl+a while not hovering over the thing, see the text? You should. Then on hover it applies a background image and that's that.
Here's a test example code which only changes the background colour since you need the image for the other.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test</title>

<style type="text/css">
body {
   background-color: #000;
   }

a#skip {
   display: block;
   position:absolute;
   top:0;
   left:0;
   width:100%;
   padding: 0 0 1em 0;
   background: transparent;
   font-weight: bold;
   text-align: center;
   }

a#skip:link, a#skip:visited {
   color: #191919;
   }
a#skip:hover, a#skip:focus, a#skip:active {
   background: #fc3 no-repeat center bottom;
   }
</style>

</head>
<body>
<a id="skip" href="#content" title="Skip to content">Skip to content</a>
</body>
</html>
__________________
George Bush would never take me alive.
MJM_RDS is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Single dropdown
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10705 seconds with 12 queries