PDA

Click to See Complete Forum and Search --> : straiten me out here - I'm goin cRaZy


dyers78
05-30-2007, 02:43 PM
CSS - I have a div tag set at 200px wide, then I have an <img> inside that div. Say the image is 180px wide and I set a left margin of 30 making the 'box' around the image 210px.

Does that image 'box' distort the main div (which is only 200px) since it's 10 px wider?

I am trouble shooting a site that is wrapping things when it's not supposed to.

JPnyc
05-30-2007, 02:46 PM
Depends on the browser. IE will probably increase the div to accommodate the image, Opera and gecko browsers will show part of the image outside the div.

dyers78
05-30-2007, 02:56 PM
is there a 'correct' way to do this or just good planning?

JPnyc
05-30-2007, 05:58 PM
Well correct is whatever gets you the desired results, from my perspective. I don't know what you're trying to do exactly.