473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

text, ul, image : floating probs

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!).

(the image is in a div so that I can write and style text underneath it).

Can someone put me on the right track?
Would be very much appreciated.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #1
7 6608
Els

A.Translator wrote:
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!).


On my pc (XP) it is IE... Firefox and NS7.1 display the
picture to the right of the ul.
I haven't looked at your code, but it might have to do with
the width of the ul. 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.
--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
On Mon, 05 Apr 2004 18:06:08 +0200, Els wrote:
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.


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.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #3
Els
A.Translator wrote:
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.


So, restrict the width of the ul.
And/or use position:relative;left:-4em; on the ul. But that
will make it go to the left in Gecko too.
I don't know if it is possible to make the indent of the
li's equal in 'both' browsers.

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #4
Els
A.Translator wrote:
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.


Might have to do with margins. Set all margins to 0 and see
what happens?

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #5
On Mon, 05 Apr 2004 18:31:53 +0200, Els wrote:
Might have to do with margins. Set all margins to 0 and see
what happens?


Thanks for all suggestions.
I will try them out and report back - just in case anyone is interested ;-)

--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #6
On Mon, 05 Apr 2004 18:31:01 +0200, Els wrote:
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...

Thank you!
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #7
On Mon, 5 Apr 2004 18:40:36 +0200, A.Translator wrote:
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...


But Opera makes a mess of it (different problem, by the look of it).
I will start all over again.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gustav Medler | last post by:
Css only offers float:right; and float:left; Is it possible, to center an image, floated around by text? Cross browser funcionality is needed for NS4.7, IE 5.x, Op 6.x, Moz 1.x, Konqu 3.x. I...
1
by: Vincent | last post by:
I noticed an irritating behaviour of the text-indent property and I wonder if I'm the only one to feel this way about it: it seems that text-indent applies even to floated elements. Although this...
3
by: Geoff Soper | last post by:
I'm trying to get some text to lie to the right of an image. If the text is deeper than the image I want the text to continue with its left margin following the line projected down from the right...
0
by: styler | last post by:
I am having difficulty with the page located here: http://tinyurl.com/2zwa9 I am creating a number of image sets (some left-, some right-aligned; an example of the right-aligned is shown the...
5
by: Steel | last post by:
Hi at all, how is it possible to insert (Fuyll immersion) an image into a text so that the text is all around the image using CSS2+? Thank in advance Steel
9
by: shapper | last post by:
Hello, What is the best way to place an image and a text side by side using CSS? Basicaly what I am trying to do is to make the image and the text to appear as follows: Image My Text......
8
by: DarkSaturn | last post by:
Is there a method of using the CSS float command on images to contain itself within a single paragraph? The problem I'm running into is trying to use float images on a listing page, I have an...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
4
by: sarika | last post by:
Hi all I want to create an online stamp making site. In my site a user select a template from number of templates for making his stamp. The template is and image with some graphics and text. Now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.