Previous Message
Next Message

[css-d] A float, a margin, and a 1px space. :(

Sent by Stephanie Sullivan on 10 February 2003 15:03


Hi people... My huge accessible, CSS-P (headache of a) site will be going
live TODAY! Whoo-hoo!

The client has just brought to my attention that on the pages where we have
photos with CSS borders, there is a small 1px space that appears between the
border and the image... This seems to have happened when I added a margin to
the image/float class so that the paragraphs would not be butt right up
against the image...

It appears to happen more often in Moz and Chimera... Is there a fix? <sigh>

http://www.kspope.com/huckle/index.php

Here is the appropriate part of my code:

    
.anirt {
    float: right;
    margin-left: 1em;
    }
#contents>.anirt {
    margin-left: 2em;
    }

    
.anilft {
    float: left;
    margin-right: 1em;
    margin-left: .5em;
    }
#contents>.anilft {
    margin-right: 2em;
    }

img {
    border: 0.3em solid #476750;
    }

Thanks for any help you can give.. :)

Stephanie Sullivan
VioletSky Design
http://www.violetsky.net

³I have not failed. I have merely found 10,000 ways that won't work.² -
Thomas A. Edison
Previous Message
Next Message

Message thread: