2 replies [Last post]
Emdangla
Emdangla's picture
Offline
newbie
Philippines
Last seen: 5 years 43 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 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

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: 5 years 13 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.