CSS and links
I haven't used CSS very much and am in the learning stage right now. I have a site that has a white background and I want the links to be a dark color with a green rollover. The nav bar has a darker color background I want the links to be a dark color with a light gray rollover. How do I do this?
To bad you can't view source style sheets.
DM
mairving posted this at 16:20 — 29th August 2001.
They have: 2,256 posts
Joined: Feb 2001
You can view stylesheets. Just look in the source and put in the path in your browser. If you have something that will read .css extensions, then it will open right up.
Here is a way to do it anyway:
For regular links:
A { text-decoration:none; font-weight:bold }
A:link { color:#}
A:visited { color:#}
A:active { color:#}
A:hover { text-decoration:underline; color:#}
For menu links:
A.menu { text-decoration:none; font-weight:bold }
A.menu:link { color:#}
A.menu:visited { color:#}
A.menu:active { color:#}
A.menu:hover { text-decoration:underline; color:#}
For the menu links, you can use them by putting a class="menu" in the A or TD tag like so:
Nowhere
Nowhere
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
disaster-master posted this at 16:44 — 29th August 2001.
She has: 2,154 posts
Joined: May 2001
Gee thanks Mairving! That was way to easy. I see now that you have to use the class thingy.
Guess I am on my way to styling now. I hope to post my new site by next week. Can't wait for you guys to rip it apart.
DM
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.