|
| |
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
CSS and hover buttons (graphics) - 1/22/2007 13:50:28
knowing that managing links via CSS is so simple, is it possible to do the same for navigation that is built with graphics? Theoretically, i've got a site that a client wants to use a certain font on their nav bar, so i have to build it using graphics. Is it possible to manage that nav bar with hover options with CSS instead of javascript? You would have to assign each button to a new <div id="">, but would that work? and wouldn't it still be a smaller file size than using the graphics on the page and the javascript? i hope i'm making sense.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
Tailslide
Posts: 5927 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: CSS and hover buttons (graphics) - 1/23/2007 2:38:37
Yes CSS is definitely better. You don't need different buttons if you're using the web page text as the button text either (which is the more accessible way of doing it). If you want the button text to be part of the image then there's this method that I found the other day that's reasonably accessible: http://www.thevisualprocess.com/dev/rollover/index.php You do need to position the button for each menu item but it's not horrendous.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: CSS and hover buttons (graphics) - 1/23/2007 15:40:31
The only reason I'd be using the js is because the font they choses was not a common one, so the text wouldn't be an option in this case. And i'll give a run to the rollover CSS, Tailslide, thanks, but i'm not sure how much easier that would be. You can see the navigation i have to deal with - http://www.narrowtrail.org/. There's probably a tradeoff between code size and difficulty in writing it.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|