Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-04-2007, 03:15 PM   PM User | #1
ptmuldoon
Regular Coder

 
Join Date: Feb 2005
Posts: 660
Thanks: 5
Thanked 14 Times in 14 Posts
ptmuldoon is on a distinguished road
text-decoration help

I'm trying to create a link that is both linking and not underlined, but I'm unsure how to get rid of the underlining. I have the below currently in my css.

Code:
.blink_text {
text-decoration:blink;
color:red;
padding-left:15px;
font-weight: bold;
font-style:italic;
}
ptmuldoon is offline   Reply With Quote
Old 07-04-2007, 03:47 PM   PM User | #2
Jutlander
Regular Coder

 
Jutlander's Avatar
 
Join Date: Jun 2007
Location: In my own sick little world :P
Posts: 425
Thanks: 1
Thanked 12 Times in 12 Posts
Jutlander is on a distinguished road
The blink value doesn't work in IE or Opera. If you want to get rid of the underlining, simply switch out your blink value with none.

You must of course apply your class to the link like this:

Code:
<a class="blink_text" href="http://www.example.com">Link text</a>
I'd change the class name now though.
__________________
.
.
Jutlander is offline   Reply With Quote
Old 07-04-2007, 03:49 PM   PM User | #3
daemonkin
Regular Coder

 
Join Date: Jun 2007
Location: N. Ireland
Posts: 351
Thanks: 16
Thanked 4 Times in 4 Posts
daemonkin is on a distinguished road
I tested this and it works fine in FF.
I would suggest using text-decoration: none; before declaring blink.

D.
__________________
Daemonkin.
If this was helpful, please add to my reputation
Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
daemonkin is offline   Reply With Quote
Old 07-04-2007, 04:27 PM   PM User | #4
Jutlander
Regular Coder

 
Jutlander's Avatar
 
Join Date: Jun 2007
Location: In my own sick little world :P
Posts: 425
Thanks: 1
Thanked 12 Times in 12 Posts
Jutlander is on a distinguished road
Quote:
Originally Posted by daemonkin View Post
I tested this and it works fine in FF.
What good is it if it doesn't work in IE and Opera... IE is still used by the majority of people.

Edit: Just checked, it looks like it works in Opera too.
__________________
.
.

Last edited by Jutlander; 07-04-2007 at 04:31 PM.. Reason: just checked, works in Opera
Jutlander is offline   Reply With Quote
Old 07-04-2007, 04:49 PM   PM User | #5
daemonkin
Regular Coder

 
Join Date: Jun 2007
Location: N. Ireland
Posts: 351
Thanks: 16
Thanked 4 Times in 4 Posts
daemonkin is on a distinguished road
By the time I posted you had already done so and since the op did not mention what browser he was using I thought I would put my money in.
__________________
Daemonkin.
If this was helpful, please add to my reputation
Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
daemonkin is offline   Reply With Quote
Old 07-05-2007, 07:47 PM   PM User | #6
ptmuldoon
Regular Coder

 
Join Date: Feb 2005
Posts: 660
Thanks: 5
Thanked 14 Times in 14 Posts
ptmuldoon is on a distinguished road
Thanks everyone. I wasn't aware that blink did not work in IE or opera, as I use FF mainly.

But I searched out the web as well, and found that you can use blink in IE or opera with a little javascript. I found it explained here if others would like to know how to add blink to IE

http://www.rgagnon.com/jsdetails/js-0098.html
ptmuldoon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:53 AM.


Advertisement
Log in to turn off these ads.