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
Another floating problem!!
Old 08-18-2007, 06:18 PM Another floating problem!!
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Hmmm Ive had problems like this in the past, but can normally fix it with a
<br /> tag style to clear:both. Although it isnt working this time!

I have an image followed by a paragraph inside a div, but in FF it overflows past the bottom of the div. Im pretty sure this is intended CSS behaviour, but its not what I want!

Here are 2 small sections of code:

HTML:
Code:
<div class="models">
    <div class="modelthumb"><img src="Images/model.jpg" class="thumb" />
      <p>Model name </p>
    </div>
    <br class="clear" />
    </div>
CSS:
Code:
div.models {width:500px;padding:5px 0;}
div.modelthumb {width:98px;height:98px;float:left;padding:4px 4px 10px 4px;
margin:0 0 10px 5px;border:#AB2C2C solid 1px;}
div.modelthumb p {margin:2px 0;clear:both;}
br.clear {clear:both;line-height:0;height:0;}
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 08-18-2007, 06:24 PM Re: Another floating problem!!
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Try clearing it with a div 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 08-18-2007, 08:02 PM Re: Another floating problem!!
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
My guess is the height of what you're trying to put inside the div is bigger than the height you've assigned to the div (98px).
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-18-2007, 10:32 PM Re: Another floating problem!!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Try this:
Quote:
.brclear{
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
However I would also tend to go with Vangogh on this one on the height of the contents.
__________________
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 08-19-2007, 07:32 AM Re: Another floating problem!!
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
ohhhhh I forgot about the height! lol. thanks
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Another floating problem!!
 

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