Jump to content

Image border/background doesn't display in IE


simcoweb

Recommended Posts

This code works great in FF but doesn't show in IE. Either I need to add a 'conditional statement' for it to work in IE or modify the code so it works in both. Basically it's a background color and border for an image:

 

 

img.floatLeft {

float: left;

margin: 4px;

border: 1px;

border-style: dotted;

color: #333333;

}

 

If you look at this page in FF you'll see it. In IE you won't. Ideas?

 

www.calcounties.com/bios.php

 

Thanks in advance!

Link to comment
Share on other sites

your link doesnt load for me

 

 

img.floatLeft {

float: left;

margin: 4px;

border: 1px;

border-style: dotted;

color: #333333;

} so without that im winging it and saying try this your border-color is missing you had  this code try below

 

you may also want to add a background-color:#333; to this so ie reads the background color and the margin should hold that color?

 

img.floatLeft {

float: left;

margin: 4px;

border: 1px dotted #333;

 

Link to comment
Share on other sites

ie has no issues with the border command  i think i found something you never call img.floatleft as a class you call imageborder which has a different rule

 

img.floatLeft {

float: left;

margin: 4px;

border: 1px dotted #333;

}

 

/* padded image border */

.imageBorder {

padding:7px;

background:#ebeae6;

border:1px solid #c8c8c7;

float:left;

margin: 5px;

}

 

 

 

Link to comment
Share on other sites

Hey, actually it's my bad on that. I meant to copy/paste the .imageBorder class which is this:

 

.imageBorder {

padding:7px;

background:#ebeae6;

border:1px solid #c8c8c7;

float:left;

margin: 5px;

}

 

The images on that page are all assigned to that class. But, it doesn't show in IE.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.