Underline Link Problem
Hi,
I am building a site with lots of text links. However, I do not want the text to be underlined when it has a link which is the default. The only way around this I know, is to make graphics with my text in, but I do not want any more graphics on my site. Does anyone know some script or another way to get rid of the automatic underline that appears on linked text?????
Thanks!
Kitten
elanbob posted this at 16:05 — 18th December 2001.
They have: 7 posts
Joined: Dec 2001
Dear Kitten,
you can do this using a style sheet.
In your HTML your links are elements. (anchors I think!)
In the style sheet you can set all elements properties using a declairation such as :
A {text-decoration: none; }
This would make all of the links on your page plain.
If you haven't used a style sheet before, the simplest way of including one is to put at the top of each page : (inside the HEAD element)
But it is far neater and more pleasing to use one style sheet for all of your pages and link to it:
and then write a text file yourfilename.css which just includes your declaration
A {text-decoration: none; }
There are loads of good web pages to help you get started with CSS if it's new to you.
One thing to beware of - most web users expect links to be underlined, so take care that they can still easily work out where your links are.
Best of luck!
Robin
The Webmistress posted this at 16:06 — 18th December 2001.
She has: 5,586 posts
Joined: Feb 2001
To do this you need to use css (cascading style sheets) this tells the page what different elements should look like & how to behave. For what you want to do you need to put the following code within the HEAD tags:
You can do all sorts of things using css and there are plenty of tutorial sites out there to read but here's one to get you started.
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
Kitten posted this at 16:10 — 18th December 2001.
They have: 10 posts
Joined: Dec 2001
Thats fantastic - will get to work on that first thing tomorrow - I have achy eyes now!
Thanks a lot,
Purrrr !!!!!
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.