Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 04-18-2010, 06:14 AM anchor text
Ultra Talker

Posts: 254
Trades: 0
please look at this link

sudhakargolakaram.co.in/files/link.html

1.
a simple question, i need to use a link which has a background image and the text for the link needs to be actual text and not part of the image

i have used
#div1 a{
background: url(darkblue_rounded1.jpg) no-repeat top left;
display: block;
width: 135px;
height: 45px;
padding: 20px 0px 0px 20px;
}

my question is though i have written the actual text for anchor it looks as if the text is part of the image and the text cannot be selected

when an image is used as a background for a link with text as actual text as i have done in this case, does the text appear as if it is part of the image and not be selectable


2.
also when a link is created by default an underline appears, i want the underline to appears slightly below the default location so i applied padding bottom to the a tag however that did not work, so i tried

a{
text-decoration: none;
border-bottom: 1px solid #000;
padding-bottom: 5px;
}
and this works as i have mentioned in the link above only in ie the border line does not appear i have used !important for ie how do i fix this for ie

please advice

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2010, 05:59 PM Re: anchor text
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
does the text appear as if it is part of the image and not be selectable
The text should be selectable and the background should be just that - a background.
Quote:
how do i fix this for ie
What VERSION of IE?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-18-2010, 06:01 PM Re: anchor text
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What is this supposed to be in your css?

Quote:
*border-bottom: 1px solid #000 !important;
*padding: 0 0 10px 0 !important;
The asterisks are not valid.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to anchor text
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63993 seconds with 12 queries