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
Div problem with Firefox
Old 07-14-2007, 06:32 AM Div problem with Firefox
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Every now and then I seem to struggle getting something to work properly in Firefox, I suppose it does make a nice change from IE.

Im trying to make a template for a forum that I will be making soon. It started off relatively straightforward but even the simplest of things seem to be messing up.

All I wanted to use was a few div's in order to layout each persons message. But the one I was planning on using at the bottom [to hold the quote and reply buttons etc...] just seems to be floating in 'mid air'.

It stressed me out so I thought I'd just use a table to contain the message for now, but the problem is still there!

This screenshot should help to show what i mean. IE is on the right [how it should look]

http://inspindesign.clawz.com/stuff/FFprob.jpg

HTML
Code:
<table class="msg">
        <tr>
          <th scope="col">14.07.07</th>
        </tr>
        <tr class="alt2">
          <td><div class="avatar">
            <p class="hl">Username</p>
            <p class="hl"><img src="../Images/bk_royale.gif" width="140" height="161" class="thumb" /></p>
            <p class="hl">000 Posts </p>
          </div>
          <div class="hundredi">Content for  class "hundredi&quot; Goedredi&quot; Goedredi&quot; Goe
          dredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goe
          dredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goe
          dredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goe
          dredi&quot; Goedredi&quot; Goedredi&quot; Goedredi&quot; Goes Here</div></td>
        </tr>
        <tr class="alt3">
          <td><div class="ftab">asdfasdf asdf asd fasf asdf asdf asdf as fas  for  class "ftab" Goes Here</div></td>
        </tr>
      </table>
CSS:
Code:
table.msg {float:none;width:100%;margin-top:5px;clear:left;}
table.msg tr {vertical-align:top;}
tr.alt {background-image:url(../Images/bg_line2.gif);}
tr.alt2 {background-image:url(../Images/bg_line.gif);}
tr.alt3 {background-color:#323232;}
div.ftab {width:100px;height:20px;background-color:#171717;}
Can anyone think whats wrong with my code??
__________________

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


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


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

Please login or register to view this content. Registration is FREE
pealo86 is online now
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 07-14-2007, 12:07 PM Re: Div problem with Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
CLEAR your floats and the problem should go away.
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
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 07-15-2007, 06:07 PM Re: Div problem with Firefox
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
Hmmm I've tried adding 'clear:left' to 'div.ftab', but the problem is still there. Is that what you meant for me to try?
__________________

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


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


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

Please login or register to view this content. Registration is FREE
pealo86 is online now
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 07-15-2007, 08:53 PM Re: Div problem with Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
From the looks of the overflow BELOW the text, you need a clear:both, but NOT on the div itself, either add it to the div that follows it or add a clearing element, like a <br> styled to clear - like in the examples I gave you the link to.
__________________
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 Div problem with 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.59721 seconds with 12 queries