RTP
08-19-2007, 07:40 PM
Hi,
I've spent all afternoon trying to figure this out, until i finally ended up here. My goal was to create a CSS navbar that looked (kinda) like a 'jazzy' flash style Navbar. This way, it would be html text based and thus SEO friendly, and still look like a good flash button(s).
I used some photoshop images that i created for the task, that represented the button states of normal, hovered, and active. Using a little trickery, i was able to make the buttons of the navbar change ('animate') when hovered over (they seemed to extend downwards, a feature seen alot with Flash style buttons). What i did was 'move' the background image along an exact amount of pixels to show the previously unseen right side of the image (which just happened to be the button in it's hovered state :) ). And then again for the activated state. This coupled with a few CSS text-state changes, and it seemed to work.
However, heres the snag. It keeps grouping the buttons vertically, and i need them in a horizontal navbar. I've been playing around alot with <li> and things like display:inline & list-style-type:none etc, but i can't get the damned thing to do it!. I've probably quite blatantly overlooked a simple thing i needed to do to achieve this; but it's been a long day so i need some help figuring it out!
It's all for test purposes, i'm just learning and playing around with things to self teach myself some aspects i'm gonna need in the near future.
Anyone know what to do? I've tried starting over and doing a basic horizontal navbar and then try and work the 'animated' feature in after, but this approach i'm struggling with too. Need to bridge that middle bit!
Thanks for your help,
Rich.
I've spent all afternoon trying to figure this out, until i finally ended up here. My goal was to create a CSS navbar that looked (kinda) like a 'jazzy' flash style Navbar. This way, it would be html text based and thus SEO friendly, and still look like a good flash button(s).
I used some photoshop images that i created for the task, that represented the button states of normal, hovered, and active. Using a little trickery, i was able to make the buttons of the navbar change ('animate') when hovered over (they seemed to extend downwards, a feature seen alot with Flash style buttons). What i did was 'move' the background image along an exact amount of pixels to show the previously unseen right side of the image (which just happened to be the button in it's hovered state :) ). And then again for the activated state. This coupled with a few CSS text-state changes, and it seemed to work.
However, heres the snag. It keeps grouping the buttons vertically, and i need them in a horizontal navbar. I've been playing around alot with <li> and things like display:inline & list-style-type:none etc, but i can't get the damned thing to do it!. I've probably quite blatantly overlooked a simple thing i needed to do to achieve this; but it's been a long day so i need some help figuring it out!
It's all for test purposes, i'm just learning and playing around with things to self teach myself some aspects i'm gonna need in the near future.
Anyone know what to do? I've tried starting over and doing a basic horizontal navbar and then try and work the 'animated' feature in after, but this approach i'm struggling with too. Need to bridge that middle bit!
Thanks for your help,
Rich.