11 replies [Last post]
bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

Hello all. I had the same exact problem as this guy:

http://csscreator.com/node/28917

and the answer that someone provided worked great! However, we are using a propriatary CMS that is not giving me access to all the linked images. Therefor, I am still stuck looking for another solution where I only need to alter the CSS style sheet, and not the html code.

Any thoughts?

Basically, I turned on underline while hovering over links, which is great for text, but not so great for linked images. I created another class for linked images, but I can't access all of them to add an attribute.

Thanks, bowie

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 15 min 27 sec ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9224
Points: 3230

Source?

Show us a representative page. (Linky)

cheers,

gary

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

www. aa pa . org

www. aa pa . org

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 15 min 27 sec ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9224
Points: 3230

Wow, that page is too simple

Wow, that page is too simple to need all that js; not to mention asp.net's truly crappy sessions method. There are those beknighted souls, who being immune to the cognitive dissonance created by using a crappy language in a do it all for you IDE, just keep on turning that crap out. Wink

Well, got that off my chest while tweaking the nose of one of our regulars. Laughing out loud

Can you now point to a specific instance on the page, a link with image, and describe exactly what you want it to do?

cheers,

gary

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 2 hours ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2259

Hey! I saw that!!! I

Hey! I saw that!!! Party

I never said .NET couldn't be used for evil. Q.E.D.

I'm not seeing the issue mentioned in the OP. Please clarify.

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

there is an aweful lot of

there is an aweful lot of crap in there, isn't there? As you can see, it's a by-product of the CMS people before me chose, the vendor they chose to develop the CMS with, and the recommended way to develop the CMS from the company. All in all, crap, it's true. But crap I have to live with.

So on that front page, you can hover over links, and see the underline. But hover over the facebook/twitter images in the lower right, and you will see some some underlines happening there, as well.

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

So, I'd like the underlines

So, I'd like the underlines to disappear. And not just for these images, but for all images that have this issue. If possible, an elegant way to handle this problem now, rather than continually modifying the css file, as I happen upon individual images that are linked and behave the same way.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 15 min 28 sec ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9224
Points: 3230

This has nothing to do with

This has nothing to do with the images; the underline is on the a element. See http://www.aapa.org/css/aapa.css line 33.

Rather than treat individual instances, the best I can offer (without your rewriting the template) is to set a {text-decoration: none;} contextually. For example,

#connected a {
    text-decoration: none;
    }

If you select .home-right a, you'll include text links, so choose your contexts carefully.

Side-note: That global reset is a waste of bits; see my arguments here, Global resets considered harmful , in comment #3.

cheers,

gary

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

alright then. on the global

--

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

alright then. on the global

--

bowie101
bowie101's picture
Offline
newbie
Last seen: 2 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-19
Posts: 7
Points: 8

alright then. on the global

alright then. on the global reset. Again, not my doing. But before I simply take it away, is there anything else I would need to do, to compensate? (Tired today, and brain not working on all cylinders.)

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 15 min 28 sec ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9224
Points: 3230

It will probably cause no

It will probably cause no issues, but like for any other global change you make, be sure to check.

cheers,

gary

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.