Gamernade Forums - The #1 Place for general Gaming and Entertainment Discussion.
 

Creative Minds - Do you dabble in Graphic Design? Web Design? Application creation? Then show your creations off in here.


Reply
 
Thread Tools Display Modes

One Stupid Kid
teh mauler's Avatar

Feb 2008

18

616

USA
teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.
Send a message via AIM to teh mauler Send a message via MSN to teh mauler
Default Is there a way, Posted 04-10-2008 at 03:08 AM.

To create a dashed line when you hover over a link besides the hack.

HACK:
Code:
<html>
   <head>
      <title>Dashed line on hover</title>
      <style>
         a:hover {
             text-decoration:none;
             border-bottom: 1px dashed #color;
         }
      </style
   </head>
   <body>
      <a href="#">This is a dashed link</a>
   </body>
</html>
If there is or if there is a better way please say so.
teh mauler is offline
 
Reply With Quote

Administrator
PicoDeath's Avatar

Dec 2007

20

6,381

England
PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.
Send a message via MSN to PicoDeath
Default Re: Is there a way, Posted 04-10-2008 at 03:09 AM.

What do you mean the hack?
__________________

This is for those praying through hell till they're in paradise
I cried blood for the children of palestine
My lifes left me so emotionaly paralised
I couldn't even cry in a funeral, when my Nan died.
PicoDeath is offline
 
Reply With Quote

Al-fa skwad bluze
Payne IV's Avatar

Dec 2007

21

2,271

ATLOL, GA.
Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.
Send a message via MSN to Payne IV Send a message via Skype™ to Payne IV
Default Re: Is there a way, Posted 04-10-2008 at 03:10 AM.

You're doing it the right way with CSS except for you are not using an external style sheet. Usually I just make a div class and give it url properties and then wrap the links in that div.

And why are you calling that method a "hack", when it's just basic css?
__________________


Gotta get 'em
Payne IV is offline
 
Reply With Quote

Administrator
PicoDeath's Avatar

Dec 2007

20

6,381

England
PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.
Send a message via MSN to PicoDeath
Default Re: Is there a way, Posted 04-10-2008 at 03:11 AM.

Yeah you confused me slightly, because it's perfectly fine.

No 'hacked' code or anything.
__________________

This is for those praying through hell till they're in paradise
I cried blood for the children of palestine
My lifes left me so emotionaly paralised
I couldn't even cry in a funeral, when my Nan died.
PicoDeath is offline
 
Reply With Quote

One Stupid Kid
teh mauler's Avatar

Feb 2008

18

616

USA
teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.
Send a message via AIM to teh mauler Send a message via MSN to teh mauler
Default Re: Is there a way, Posted 04-10-2008 at 03:12 AM.

Well it is technically a hack because there isn't a specified text-decoration: dashed; sort of thing. I guess its more a workaround. And I didn't use a stylesheet because that was an example just random code that I thought of quickly.
teh mauler is offline
 
Reply With Quote

Al-fa skwad bluze
Payne IV's Avatar

Dec 2007

21

2,271

ATLOL, GA.
Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.
Send a message via MSN to Payne IV Send a message via Skype™ to Payne IV
Default Re: Is there a way, Posted 04-10-2008 at 03:12 AM.

What the hell you talking about? Your just styling links, nothing special.
__________________


Gotta get 'em
Payne IV is offline
 
Reply With Quote

One Stupid Kid
teh mauler's Avatar

Feb 2008

18

616

USA
teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.
Send a message via AIM to teh mauler Send a message via MSN to teh mauler
Default Re: Is there a way, Posted 04-10-2008 at 03:17 AM.

I know its nothing special but when you use a text-decoration it has a number of ways to decorate it. same with font and color properties. But borders are generally used for layouts and such so, I consider it a workaround because there isn't a text-decoration way of styling the link. There will be a way of doing this in CSS3 though. http://www.w3.org/TR/css3-ui/
teh mauler is offline
 
Reply With Quote

Al-fa skwad bluze
Payne IV's Avatar

Dec 2007

21

2,271

ATLOL, GA.
Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.Payne IV is basking in the limelight.
Send a message via MSN to Payne IV Send a message via Skype™ to Payne IV
Default Re: Is there a way, Posted 04-10-2008 at 03:20 AM.

Ok I see what you mean, you just want the same effect but with text-decoration. I don't see why that would be better, I'd rather have the border bottom.
__________________


Gotta get 'em
Payne IV is offline
 
Reply With Quote

Administrator
PicoDeath's Avatar

Dec 2007

20

6,381

England
PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.PicoDeath is a living legend.
Send a message via MSN to PicoDeath
Default Re: Is there a way, Posted 04-10-2008 at 03:20 AM.

I wouldn't call it a workaround... before you read that css3 is introducing it did you consider it a workout? I'd just call it the current method.

A workaround for me is when FF will display my dropdown perfectly, but I need more code/sometimes files to make it work in IE.
__________________

This is for those praying through hell till they're in paradise
I cried blood for the children of palestine
My lifes left me so emotionaly paralised
I couldn't even cry in a funeral, when my Nan died.
PicoDeath is offline
 
Reply With Quote

One Stupid Kid
teh mauler's Avatar

Feb 2008

18

616

USA
teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.teh mauler is a living legend.
Send a message via AIM to teh mauler Send a message via MSN to teh mauler
Default Re: Is there a way, Posted 04-10-2008 at 03:25 AM.

Quote:
Originally Posted by PicoDeath View Post
I wouldn't call it a workaround... before you read that css3 is introducing it did you consider it a workout? I'd just call it the current method.

A workaround for me is when FF will display my dropdown perfectly, but I need more code/sometimes files to make it work in IE.
I did consider it a workaround because it is added code but not really . I'm not trusting CSS3 until a while after it developed (look at CSS2) but I guess you are right. I just think it would make more sense to have it as a text-decoration definition because of its use.
teh mauler is offline
 
Reply With Quote
Reply


Thread Tools
Display Modes

 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
footer

footer-image

All times are GMT. The time now is 01:47 PM.

Hosted By HostGator

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0