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
floats conquer me again.
Old 04-10-2008, 03:23 AM floats conquer me again.
Super Talker

Posts: 131
Trades: 0
So I thought I had finally gotten the better of floats with clear and overflows and stuff, but apparently not.

link : http://opensecretdev.com/tim/

css:
Code:
div#wrap {
    background-image:url('images/bg.jpg');
    background-repeat:repeat-y;
    width:830px;
    height:100%;
    margin:0 auto 0 auto;
    text-align:left;
    border:2px solid red;
    }
    
div#head {
    width:830px;
    height:95px;
    background-image:url('images/header.jpg');
    }
    
div#nav {
    margin:0 auto;
    width:710px;
    padding-top:10px;
    }
div#content {
    width:400px;
    margin-left:60px;
    float:left;
    }
div#right1 {
    width:268px;
    height:194px;
    float:right;
    background:url('images/scientificMarketing.jpg') no-repeat;
    margin-right:60px;
    margin-bottom:10px;
    
    }
div#right2 {
    float:right;
    width:268px;
    height:347px;
    background:url('images/actualResults.jpg') no-repeat;
    margin-right:60px;
    margin-bottom:30px;
    }
#clear {
    clear:both;
    width:760px;
    }
I tried overflow:auto and got scroll bars
I tried overflow:hidden and got cut off content
I tried clearing below the floated elements and wrap still won't surround them.

Thank you in advance.

Last edited by LadynRed; 04-10-2008 at 11:18 AM..
soap is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-10-2008, 03:49 AM Re: floats conquer me again.
Super Talker

Posts: 131
Trades: 0
uhh i forgot to add a doctype, nevermind.
soap is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 11:21 AM Re: floats conquer me again.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You DO have an error there. You've used <div id="clear"> more than once. ID's MUST be unique. If you want to reuse CSS rules, make it a CLASS instead.
__________________
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 04-10-2008, 06:13 PM Re: floats conquer me again.
Super Talker

Posts: 131
Trades: 0
ah, thanks i didn't know that!
soap is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 08:59 PM Re: floats conquer me again.
Super Talker

Posts: 131
Trades: 0
Also... I've have this recurring problem where i have wrap set to 100% height, but the content does not bring it down to the bottom of the window, then it stops.
Is that understandable? Should I just use a min-height?

Thanks!
soap is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 09:12 PM Re: floats conquer me again.
Defies a Status

Posts: 3,420
Trades: 0
You might find this thread useful - if you want your div to be 100% of the height of the browser window regardless of the resolution.

Dan
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 09:17 PM Re: floats conquer me again.
Super Talker

Posts: 131
Trades: 0
You're all so helpful and I am very grateful.

Thanksss
soap is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to floats conquer me again.
 

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