Jump to content
Terrorer

Pictures for Links- Pressed and Non-Presssed?

Recommended Posts

Me, again. This time, I just can't seem to get my head around it. I came up with this idea when I was looking at the link tutorial. So my links on my website are little button pictures right? And I want them to change to a pressed button when they are active. How would I do that? This is probably a stupid, but I just can't get whatever I am not getting right now. And yes I have read the tutorial and searched the reference, I even went to other web pages and inspected their elements.

Share this post


Link to post
Share on other sites

The CSS tutorial on W3Schools explains CSS sprites. Just make a sprite that changes when the button is in an :active state.

Share this post


Link to post
Share on other sites

You used to be able to use :visited, but because of security issues where someone could identify where you have been by the menu images stored in you cache, relating to what pages you visited! some browsers disable to use of images and limit to background-color: font, and border changes for visited links. So you have two options php or javascript, you use both to determine what page you are on, and then apply a classname to the menu link to show this link as the active link to the current page with required styling applied to this specific menu.

Share this post


Link to post
Share on other sites
The CSS tutorial on W3Schools explains CSS sprites. Just make a sprite that changes when the button is in an :active state.
Ohh haha thanks. And yes, I have already made the sprites I guess. :D But this will be tomorrow project..I am going to start using div.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...