Reply
Crazy render issue
Old 04-23-2007, 07:52 PM Crazy render issue
futurevisions's Avatar
Skilled Talker

Posts: 98
Location: UK
I'm a bit puzzled on this one:

http://future-visions.co.uk/cej/inde...page=bracelets

For some reason, IE displays the product box correctly, however, Firefox renders the page with the product picture and information not actually inside the grey box.

I've prowled through the CSS to no end, but I can't figure out what's stopping this from displaying correctly in Firefox. Any ideas, anyone?

Thanks for any help given.
futurevisions is offline
Reply With Quote
View Public Profile Visit futurevisions's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-24-2007, 03:14 AM Re: Crazy render issue
Experienced Talker

Posts: 36
I'm new to css and by far no expert but at first glance I'm guessing the problem has to do with the fact that you did not specify a height for prod-box.

Hope this helps,
-Phaaze

(Edit: The other thing you could try if the image is dynamic, therefore different on each page, is giving prod-box a display: table; - I don't know if this is good common practice or not but I do believe it works.)
__________________


Last edited by Phaaze : 04-24-2007 at 03:24 AM.
Phaaze is offline
Reply With Quote
View Public Profile
 
Old 04-24-2007, 04:48 PM Re: Crazy render issue
futurevisions's Avatar
Skilled Talker

Posts: 98
Location: UK
Your solution for 'display: table' nearly had me thinking I might have sorted it! But, although it isn't supported by IE, that did fix the problem by displaying correctly in both Firefox and IE, but didn't work just right in Safari.

Back to the drawing board? Thanks though, great help!
futurevisions is offline
Reply With Quote
View Public Profile Visit futurevisions's homepage!
 
Old 04-24-2007, 05:14 PM Re: Crazy render issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Clear your left float immediately after your prod-desc paragraph.

Something like <div style="clear: left;"></div>

Also, you should specify a width and height for your image. It won't solve this particular issue; it's just good practice.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-24-2007, 05:43 PM Re: Crazy render issue
futurevisions's Avatar
Skilled Talker

Posts: 98
Location: UK
Hi ADAM WD,

That's the right solution, and it works. Is there any chance you could explain why that works?

I can specify widths for those images, because all the product images will have fixed widths, but the heights will differ.
futurevisions is offline
Reply With Quote
View Public Profile Visit futurevisions's homepage!
 
Old 04-24-2007, 08:08 PM Re: Crazy render issue
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Because any time you use floats, Firefox (and I believe most other browsers) require them to be cleared. I've never really been sure why that is, other than because floats tend to "float" outside of the content area (hence their name).

LNR would probably be able to come up with a better explanation or link than I can.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Crazy render issue
 

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.16585 seconds with 13 queries