2 replies [Last post]
Emdangla
Emdangla's picture
Offline
newbie
Philippines
Last seen: 5 years 15 weeks ago
Philippines
Timezone: GMT+8
Joined: 2015-03-26
Posts: 1
Points: 2

Is there any way that this CSS code of mine will work in a way that the dotted decoration for links will only work for texts, but not in images?

#content a {
	border-bottom: 1px dotted #666;
	text-decoration: none;
}

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 hours 15 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

Use a class to segregate the image links

    a {
	border-bottom: 1px dotted #666;
	text-decoration: none;
        }
 
    a.image {
      border-bottom: none;
      }

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

VeeraM
VeeraM's picture
Offline
Enthusiast
bangalore
Last seen: 4 years 37 weeks ago
bangalore
Timezone: GMT+5.5
Joined: 2014-09-22
Posts: 59
Points: 59

underline

Hi,this text-decoration are used in underline but image links are used to a href links only form this images.they have used to an images links to anger tag.