Forum Moderators: not2easy

Message Too Old, No Replies

Image padding

         

adamnichols45

6:21 pm on Feb 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have an image and im wrapping the text around to the right side and underneth.

How can I apply padding of 5pm to just that 1 image on the page?

cmarshall

6:32 pm on Feb 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not quite sure what you mean. I might be a bit thick.

Can you post any XHTML or an "illustration" of what you want?

I am assuming that the standard "float," "margin" and "padding" is not what you seek.

adamnichols45

6:51 pm on Feb 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I managed todo it like this!

.ab {
margin-right: 10;
margin-bottom: 1;
}

I was using padding to no effect but margin is working fine.

cmarshall

7:38 pm on Feb 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah, I've been bitten by the same thing. I suspect that SuzyUK could explain it, but I believe that images don't have anything to "pad," as the image itself is the entire display.

I also think that images are inline, but you should be able to pad inline elements.

SuzyUK

7:58 pm on Feb 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



margin is the right thing to use imo.

.ab {
margin-right: 10;
margin-bottom: 1;
}

but 10 what?.. 1 what? ;)
make it easy for the browsers tell them exactly what you'd like (px, em, cm) or you might not get a consistent result

>>re: padding v margin on an image
what's your Doctype?