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
Float option not working in Firefox
Old 10-16-2007, 10:54 PM Float option not working in Firefox
Skilled Talker

Posts: 52
Name: ana
Trades: 0
Can someone please tell me what I am doing wrong with these images that I was side by side? IE 6 & 7 displays them beautifully, however fireworks is ignoring the float style completly, any ideas? This is the page in question: http://www.spotlight.com.au/projects/sewing_new

<div id="twoColContent">
<div id="thumbs">
<a href="./?f=71228" target="_blank"><img src="./?f=71230" width="115" height="163" alt="Project Image" border="0"></a>
<div class="dl"><a href="./?f=71228" target="_blank">Click to download</a></div>
</div>
<div id="thumbs">
<a href="./?f=71209" target="_blank"><img src="./?f=71231" width="115" height="163" alt="Project Image" border="0"></a>
<div class="dl"><a href="./?f=71209" target="_blank">Click to download</a></div>
</div>
</div>

STYLE SHEET:
#twoColContent #thumbs { position: relative; float: left; margin-right: 11px; margin-bottom: 10px; height: 135px; }
ana_rad is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-16-2007, 11:07 PM Re: Float option not working in Firefox
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
You don't need the position: relative; there. Try taking that out and looking at it in Firefox (I don't think that you mean Fireworks ).

I looked and the coding and I don't even see the CSS that you said was associated with that. I think that IE treats most block-level elements as inline elements. It does that with divs too...
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 10-16-2007, 11:13 PM Re: Float option not working in Firefox
Skilled Talker

Posts: 52
Name: ana
Trades: 0
I tried that - and it's still the same :-(

When I add the inline style <div style="float:left;"> instead of <div id="thumbs">, then it works fine in both browsers...can anyone explain why the style doesnt work in the style sheet?

Last edited by ana_rad; 10-16-2007 at 11:31 PM..
ana_rad is offline
Reply With Quote
View Public Profile
 
Old 10-16-2007, 11:17 PM Re: Float option not working in Firefox
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Check your stylesheets again. I looked for the #twoColContent and #thumbs styles (like coolkbk585 did), and I didn't find that style anywhere.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 10-17-2007, 10:29 AM Re: Float option not working in Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
If you specify a float on a div, you MUST also define a WIDTH. The only time you don't have to do that is if you're floating an image - it has a width already defined - or should have.

I looked at the page in Firefox.. I didn't see any float problems. ?
__________________
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
 
Old 10-17-2007, 08:13 PM Re: Float option not working in Firefox
Skilled Talker

Posts: 52
Name: ana
Trades: 0
Sorry, I was feed up trying to make it work with the style sheet so I just added the inline style for that page. But if i could make it work I would like to because its a lot cleaner. So I have re-created the problem on this page: http://www.spotlight.com.au/projects/sewing_test. The style sheet can be viewed here: http://www.spotlight.com.au/projects...2/projects.css

As you can see in the style sheeet I have set the width of the DIV and then set the float to left. This appears correctly in IE but not in Firefox.

Style sheet code:

#twoColContent #thumbs { width: 125px; float: left; margin-right: 10px; margin-bottom: 10px; }

HTML code:

<div id="twoColContent">
<div id="thumbs">
<a href="./?f=71276" target="_blank"><img src="./?f=71278" width="115" height="163" alt="Project Image" border="0"></a>
<div class="dl"><a href="./?f=71276" target="_blank">Click to download</a></div>
</div>
</div>

Last edited by ana_rad; 10-17-2007 at 08:15 PM..
ana_rad is offline
Reply With Quote
View Public Profile
 
Old 10-18-2007, 12:03 PM Re: Float option not working in Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Just like yesterday..
Nowhere in your CSS, any of the 3 CSS files, did I find #twoColContent #thumbs. However, you DO have a CLASS - .thumbs - set with hovers, but no floats.

Your HTML calls for a CLASS too:
Quote:
<div id="twoColContent">

<div class="thumbs">
<a href="/__data/page/12485/Applique_cushion.pdf" target="_blank"><img src="/__data/page/12485/Applique_cushion-1_copy.jpg" width="115" height="163" alt="Project Image" border="0"></a>
<div class="dl"><a href="/__data/page/12485/Applique_cushion.pdf" target="_blank">Click to download</a></div></div>
__________________
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 Float option not working in Firefox
 

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