2 replies [Last post]
leverage7
Offline
newbie
Last seen: 13 years 12 weeks ago
Joined: 2007-10-10
Posts: 5
Points: 0

So I am trying to lineup an img to the very left of my div yet it is keeping some spacing even after setting padding/margin to 0. Anyone have a workaround or explanation? Thanks, Ben

.ad
{
padding: 0;
margin: 0;
display: block;
border: solid 1px black;
margin-left: 0px;
width: 405px;
margin-left: 27px;
overflow: hidden;
}

.ad img
{
margin: 0px 10px 0px 0px; padding: 0px 0px 0px 0px;
float:left;
clear: both;
}

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 28 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

need all code

need all code

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

leverage7
Offline
newbie
Last seen: 13 years 12 weeks ago
Joined: 2007-10-10
Posts: 5
Points: 0

here ya go...

Doh! Just had another div overriding the img margin! Thanks for your help.