Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

css span help 1

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
On my webpage in the style block I have:
.highlight2 {color: goldenrod;}
Then (if you can ignore all the PHP) I have the ink
...
<a href=search010.php?id='.$pg_id.'&Type_view=detail&Type_Submit='.$Type_Submit.'&key_word='.urlencode($highlight).'><span class="highlight2">more</span><a>';

But I only get the word "more" changed to the color not the underline link decoration - that's the default blue color.

How do I get the word and the underline set to the same color via the span method I'm using?

Let's say another ques. How could I get a box around "more"?

Sincere thanks for the help,
Lee
 
Give the <a> tag the class 'highlight2' and get rid of the span.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top