Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

menu links CSS

Featured Replies

ok im trying to create menu link in a vertical table. im having trouble making the links rollover to a different colour when the mouse hovers over them. the text is black and i want it to rollover to red when hovered. any ideas where im going wrong ?

you can set the state of hover using css

 

a:hover {

color:#FF0000}

 

 

if you don't have a css file then you can add this bit of code somewhere in between the <head> and </head> tags

<style>
a:hover {
color:#FF0000}
</style>

  • Author
you can set the state of hover using css

 

a:hover {

color:#FF0000}

if you don't have a css file then you can add this bit of code somewhere in between the <head> and </head> tags

<style>
a:hover {
color:#FF0000}
</style>

 

ok il try doing it without the css.

 

i tried it with doing it as css and it went breats vertical so il try the coding you supplied. ta

  • Author
ok il try doing it without the css.

 

i tried it with doing it as css and it went breats vertical so il try the coding you supplied. ta

 

ok question 2 )

 

using CSS rules now.

 

the div is called #navtable

 

can u list the settings to make the text hover as red.

 

in the #navtable div is a 11 column table, 1 row thick with text in being used as buttons.

 

just cant see where im going wrong

and neither can anyone here unless you post a link to the site...or the code so that we can see exactly what it is you are doing

  • Author

ok its not hosted at the moment, just still designing through DW.

 

to make it simple

 

i have a div called #nav . using a css to make hover text do i add CSS rule named #nav #a:hover ?

 

 

 

if this is still unclear can u explain how to make any word in a site have a hover cover using CSS rule please.

 

 

sorry for the unclearness

If you just want <a href=....> links within the div with the id #nav, then you would use the following CSS:

 

#nav a:hover { ... }

 

I recommend having a read through the Sitepoint CSS Reference, it covers absolutely everything regarding CSS.

 

Rob

  • Author
If you just want <a href=....> links within the div with the id #nav, then you would use the following CSS:

 

#nav a:hover { ... }

 

I recommend having a read through the Sitepoint CSS Reference, it covers absolutely everything regarding CSS.

 

Rob

 

ta rob il give it a go. thanks dizi aswell

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.