Christopher R wrote:
> On Tue, Mar 10, 2009 at 8:38 AM "Virgilio Quilario"
<[email protected]> wrote:
>>> Hi does anyone know why I'm getting white spaces between sliced
images ? I have a bunch of <img> tags within the <div> and I can't
figure out why the images have spaces, and currently why half of the
image slices look fine and the rest look like a jigsaw puzzle.
>> hi, maybe you need:
>> img {
>> margin:0;
>> padding:0;
>> }
>>
>> please post a code or link to it.
>>
>> Virgil
>> http://www.jampmark.com
> I put in padding 0, margin 0 within the div and that didn't solve it neither
> did display:inline or display: block.
> idname img {rules} is how I currently have it laid out. Now what also I find
> odd is that I have all my slices loaded but 2 slices don't show up
> in the right order there still is a gap between the slices that do show up.
Christopher, a link does help.
BTW, the display:block should be applied to the img and not the div.
img {display:block;}
The div element is display:block by default. Currently I presume the
image is display inline (since its an inline element) so it baseline is
the same level as the base line of the run of line boxes within I
presume the div.
Do you have a link or small sample portion of the code?
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/