Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 7
Trades: 0
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 01: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
 
 
Register now for full access!
Old 03-28-2007, 01:50 PM Re: IE doesn't like image with buyoancy (aka. floating).
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-28-2007, 02:19 PM Re: IE doesn't like image with buyoancy (aka. floating).
Novice Talker

Posts: 7
Trades: 0
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, 02:22 PM Re: IE doesn't like image with buyoancy (aka. floating).
ADAM Web Design's Avatar
Canadastaninianite

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

What happens if you put the image inside of a div and float the div to the left instead?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-28-2007, 02:48 PM Re: IE doesn't like image with buyoancy (aka. floating).
Novice Talker

Posts: 7
Trades: 0
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, 03:05 PM Re: IE doesn't like image with buyoancy (aka. floating).
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE doesn't like image with buyoancy (aka. floating).
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.60175 seconds with 12 queries