Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IMG borders acting funny

Status
Not open for further replies.

Kuloch

Programmer
Jul 28, 2004
13
US
A quick search didn't yeild anything, and I don't think this one is merely a wrong DOCTYPE...

IE is being spotty on image borders. My CSS file contains:

Code:
img
{
border-width: 1px;
border-color: #000000;
}

img.noBorder { border-width: 0px; }

One page displays all images as I want them, though not quite correctly. All of the mid-content images have borders - great. And I set the logo and name up top as class="noBorder". However, I've left the menu bar img links and bottom validation images with no class specified, and as such they should have borders but do not (I'll set them to noBorder as soon as I get this straight, but I'll leave them for the time being).

I could possibly live with that, but going to another page provides no image borders whatsoever (and, of course, none of them have class definitions).

If you need me to provide any source links, just let me know what you want.
 
Try adding a 'border-style: solid;' to the img's style. I think the images that show a border do so because they are links. Also, I normally just use 'border' to specify the border like this because it's easier:
Code:
border: 1px solid #000000;

 
That did it. I guess it helps to read each and every CSS definition, rather than skim through the list, eh?

Anyway... thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top