Reply
IE doesn't like image with buyoancy (aka. floating).
Old 03-28-2007, 12:27 PM IE doesn't like image with buyoancy (aka. floating).
Novice Talker

Posts: 7
Hi.

my little web project has grown a bit (thanks for the assistence, again) since my last post ... all is fine, so far, my main text is only 357 words so I can expand that by about 400 still (even though the deadline is getting rather close).

However I am stumbling over something, right now, and fail to see what goes wrong. (Hm, I think that happens to many people all the time on very different levels ). My limited knowledge of css comes through there,

http://www.student.ljmu.ac.uk/eclchaeb/rocks/rocksv5/

If one opens the sample rock key (-->Topics --> An Example Rock Key) there is one link in it, that opens up a short description of sandstone.

In Opera this includes an image with the text floating around it, just fine. IE6 loads the image, but doesn't let the text float.

HTML Code:
<img src="images/sandstone.jpg" class="boximage" alt="sandstone" />
The fitting CSS definition:
Code:
img.boximage {float: left; margin-right:5px; margin-bottom:5px;}
Am sure I'll go d'oh eventually. But am not praying for that, at this stage.

Thanks for any suggestion,
-Mnemon

Last edited by Mnemon : 03-28-2007 at 12:31 PM. Reason: Forgot link. And then fixed it. And then the forum tried to steal my image.
Mnemon is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-28-2007, 12:50 PM Re: IE doesn't like image with buyoancy (aka. floating).
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Specify a width and height for the image in question.

It doesn't show up at all when I click that link, either. Did you take it out?
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-28-2007, 01:19 PM Re: IE doesn't like image with buyoancy (aka. floating).
Novice Talker

Posts: 7
Hm. No, the added height and width wasn't what was needed (but yes I should do that, elsewhere, too).

No idea why the image isn't displayed. What browser are you using?

(full path to image: http://www.student.ljmu.ac.uk/eclcha.../sandstone.jpg)

Thanks,
-Mnemon
Mnemon is offline
Reply With Quote
View Public Profile
 
Old 03-28-2007, 01:22 PM Re: IE doesn't like image with buyoancy (aka. floating).
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
IE6. It showed up now.

What happens if you put the image inside of a div and float the div to the left instead?
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-28-2007, 01:48 PM Re: IE doesn't like image with buyoancy (aka. floating).
Novice Talker

Posts: 7
Div pushes text to bottom. That works slightly nicer.

It might be a problem with multiple divs inside each other?

HTML Code:
<div id="rock_key">
...
<p class="rockkey">
...
<div id="sandstone">
<div id="boximage">
<img src="images/sandstone.jpg" width="225" height="169" alt="sandstone" />
</div>
<p>...</p>
</div>
</p>
</div>
Hm.

-Mnemon
Mnemon is offline
Reply With Quote
View Public Profile
 
Old 03-28-2007, 02:05 PM Re: IE doesn't like image with buyoancy (aka. floating).
LadynRed's Avatar
Super Moderator

Posts: 6,555
Location: Tennessee
If you are going to use floats, then you MUST Define a width on the floated element.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE doesn't like image with buyoancy (aka. floating).
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15946 seconds with 12 queries