Forum Moderators: not2easy

Message Too Old, No Replies

Styling image alt text

Making alt text bigger in IE

         

Adam5000

12:37 am on Jul 14, 2014 (gmt 0)

10+ Year Member



For the images on my site, I'm using the following general code.

<img src="image1.png" alt="Image 1">

And I'm styling the alt text with

img
{
font-size: 20pt;
}

The styling works with Firefox, but not with IE.

Is there a way to increase the size of the alt text on IE?

Hoople

10:26 pm on Jul 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The image should inherit the body or html styling.

Have you tried using !important in your img css?

lucy24

11:07 pm on Jul 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Show me an !important and I'll show you a styling conflict.

The <img> tags are presumably located inside something else. So look for css that says
.blahblah img
or even
.blahblah *

Is there an Element Inspector type plug-in/add-on/extension for MSIE? Obviously not much point checking in a different browser, since they'll probably only show the rules they themselves chose to apply. But try to find where the point-size is coming from.

Adam5000

1:38 pm on Jul 16, 2014 (gmt 0)

10+ Year Member



There's probably a way to do it with coding, but I think the best way is to make sure I don't have any broken img links.

not2easy

2:58 pm on Jul 16, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



What version of IE are we talking about? They aren't all the same.