![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On this page http://huizen.dds.nl/~ochrid/Henk/biblio_nieuw.htm I try to have three divs: one containing justified text, one containing a ul and one containing an image. ul is set to float left, the div with the image in it, to float right. But both Mozilla and IE put the image underneath the ul, instead of to the right of it (so it is me, not IE!). |
#3
| |||
| |||
|
|
The indent makes the li's go to the right, and apparently to much to the right to have the picture next to it. Add *{border:1px solid red;} to your stylesheet, to see how wide things really are. Make sure the total width of the ul (and it's li's) and the picture div aren't wider than the width of the container div. |
#4
| |||
| |||
|
|
On Mon, 05 Apr 2004 18:06:08 +0200, Els wrote: Thanks for your prompt and helpful reply. Good to hear things display as intended in FireFox and NS (still not in my Moz 1.6). I had thought about there maybe not being enough space: IE shows no bullets, but seems to indent and push the image to the right. There should be just enough room, say my red lines. If I cheat and put the imagebox-div inside the ul-div, IE clearly illustrates the problem: http://huizen.dds.nl/~ochrid/Henk/biblio_nieuw2.htm The image now floats right, and the longest line in the ul oozes over the rim of the box, so to speak. |
#5
| |||
| |||
|
|
On Mon, 05 Apr 2004 18:06:08 +0200, Els wrote: I had thought about there maybe not being enough space: IE shows no bullets, but seems to indent and push the image to the right. There should be just enough room, say my red lines. |
#6
| |||
| |||
|
|
Might have to do with margins. Set all margins to 0 and see what happens? |
#7
| |||
| |||
|
|
And/or use position:relative;left:-4em; on the ul. But that will make it go to the left in Gecko too. |
#8
| |||
| |||
|
|
And/or use position:relative;left:-4em; on the ul. But that will make it go to the left in Gecko too. trial and error made me set it to left:-2em, which has the desired effect in both my IE 6 and Moz 1.6... |
![]() |
| Thread Tools | |
| Display Modes | |
| |