Topic: Common problem? A Floating Left Div not touching Right Div |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Phoenix |
posted 12-31-2005 17:24
I have a div on the left "floating" there. On the right is one or more divs. The intention is that everything bumps up nicely, but they are not. There is about a 3px gap between the left column and right column. Is this common and is there a *standard* fix or do I need to give more details about what my HTML looks like thus far? |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 12-31-2005 22:19
Hard to say why the engine doesn't run if you don't drop off the car ... |
Bipolar (III) Inmate From: Phoenix |
posted 12-31-2005 23:32
Bighting my tongue (wes), I suggested that I would provide more details if necessary. |
Maniac (V) Inmate From: PA, US |
posted 01-01-2006 04:03
3 pixel jog, IE specific. code: #left {float:left;width:182px;} #main {margin-left:183px;} /* IE/Win 3px jog fix, hide from IE5-mac. Only IE/Win can see this. \*/ * html #left {margin-right: -3px;} * html #main {margin-left:180px;} /* End hide from IE5/mac */
|
Lunatic (VI) Inmate From: under the bed |
posted 01-01-2006 23:57 |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 01-02-2006 03:49 |
Bipolar (III) Inmate From: Phoenix |
posted 01-02-2006 06:08
Sorry Wes, I was just a little cranky the other day and should have taken your hint a little less personally ; ) |
Bipolar (III) Inmate From: Phoenix |
posted 01-02-2006 19:23
Ramasax, |
Bipolar (III) Inmate From: Phoenix |
posted 01-02-2006 20:35
*hoping someone takes a look at this* |
Paranoid (IV) Inmate From: Norway |
posted 01-02-2006 21:13
are you sure there is no margin or padding in your DIV ? |
Bipolar (III) Inmate From: Phoenix |
posted 01-02-2006 21:47
Yep, I'm sure there are no extra spaces. It seems that there is an issue with and img lined up tight with a block element. |
Paranoid (IV) Inmate From: Norway |
posted 01-02-2006 22:08
quote: Oh, and in case you are doing some web design in MSIE (eeek) try with no white-space between the IMG and DIV tags. |
Paranoid (IV) Mad Librarian From: GlieBeGe |
posted 01-02-2006 23:09
Another thing to try'd be a 'display: block;' in the 'nospace' class instead of the zero margin and padding rules. (Which you might then, of course, give a more suitable name like 'blockel' or something ) |
Lunatic (VI) Inmate From: under the bed |
posted 01-02-2006 23:49
As Kuckus noted - the display value of the iamge is actually causing the problem here. The image is by default inline, the div block. In some browsers this causes a space. |
Bipolar (III) Inmate From: Phoenix |
posted 01-03-2006 05:17
Setting the img to an element of type block fixed the problem. Thanks! |