Forum Moderators: not2easy

Message Too Old, No Replies

unapply CSS in certain parts?

         

jewlz442

3:47 am on Jan 30, 2006 (gmt 0)

10+ Year Member



Hi, On my website I have a css doc that makes a link highlight when hovered over, text link and picture link. I love this effect on a text link but not on an image link! Is there a way I can make it so a picture link will not highlight but all the other links will?

Thank you!

jewlz442

4:20 am on Jan 30, 2006 (gmt 0)

10+ Year Member



NVM, problem solved! :)

Incase any of you are wondering

adding border="0" after image url will solve that problem.

eg: <a href="http://yoursite.org"><img src="yourpic.gif border="0"></a>

:D

Setek

4:23 am on Jan 30, 2006 (gmt 0)

10+ Year Member



What do you mean by highlight, do you mean
text-decoration
?

If the image is within the link, i.e.


<a href="#"><img src="#" /> plus text too</a>

AFAIK, you can't do anything about it. If it's two separate links:

<a href="#"><img src="#" /></a>
<a href="#">text links</a>

Then you can set some properties to
a img
:

a { text-decoration: underline; }
a img { text-decoration: none;
border: 2px Solid #333; }

That sort of thing. If you could show the relevant markup it might make it easier to determine whether it's possible or not.

jewlz442

4:26 am on Jan 30, 2006 (gmt 0)

10+ Year Member


SETEK this is the code:

input, option, textarea, select{
border: 0px solid #917648;
background: #5D5D5D;
font-family: Georgia;
font-size: 12px;
color: #CFCFCF;
text-align: justify;
}

on 2nd thought I don't know if that solved the problem!

Setek

4:30 am on Jan 30, 2006 (gmt 0)

10+ Year Member



That's CSS for form elements? Weren't you enquiring about anchor and image elements?

jewlz442

4:33 am on Jan 30, 2006 (gmt 0)

10+ Year Member



This code means when it hovers it puts a selection over the text/image. I considered it to be an image issue! lol

Setek

4:51 am on Jan 30, 2006 (gmt 0)

10+ Year Member



This code means when it hovers it puts a selection over the text/image.

There's nothing in that CSS that determines

:hover
either... I'm afraid I don't understand what it's doing - puts a selection over the text/image? - or what you want it to do :/

Or what the relevant code is either :)

jewlz442

4:54 am on Jan 30, 2006 (gmt 0)

10+ Year Member



haha nvm, I am a newb to css. But solved the problem just by fiddling around.

Thanks for your trying to help though :)