...

View Full Version : Padding Issue



daemonkin
04-01-2009, 03:39 PM
My Dev Site (http://dev.twacademy.org)

I have an image in my div left box. The image has class right and .right has attributes given margin of 5px to left for breathing room.

The problem is that the image does not give its desired breathing room.

Any help?

D.

Fisher
04-01-2009, 04:43 PM
The order looks correct, however your margin is being overridden by this in main.css:


div#content img, div#right_col img {
border: 0;
padding: 0;
margin: 0;
display: block;
}

If you eliminate the margin:0 here, it works.

daemonkin
04-02-2009, 08:39 AM
Thanks for the reply Fisher and I have removed the margin: 0 from content img but the margin is still not showing up in the left_box img.

Any more thoughts?

D.

daemonkin
04-02-2009, 08:47 AM
Never mind Fisher. Idiot me messing around with tring to get this working I forgot to fix the messes I made.

D.

abduraooft
04-02-2009, 08:50 AM
How about
img.right {/*main.css (line 430)*/
background-color:#CC0000;
display:inline;
float:right;
margin-left:5px;
}

daemonkin
04-02-2009, 09:20 AM
Thanks Abduraooft. Figured that one out all by myself! :rolleyes:

That was a remnant of trying to float left and margin right when the float right and margin left did not work.

Cheers.

D.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum