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
Old 05-24-2008, 09:19 PM CSS Wizards - HELP!
Novice Talker

Posts: 7
Name: Dianna
Location: Victoria B.C. Canada
Trades: 0
Hello:

I am in the middle of creating a site for a very worthy cause - to stop puppy mills.

I am very new to CSS and the problem I am having is I can not seem to get the "border" of my "container" tag to go all the way down unless I add a "height" attribute in the code.

I assumed when I code such as:

<div id=container>
<div id="header"></div>
<div id="content"></div>
</div>

that the "container would hold all the items in it; hence adding a border along the left and right side in container code would create a "box" with a border.

What did I do wrong?

here is the page www.inlightwebdesign.com/sayno2/index.html

Any information would be greatly appreciated!!

Thanks,

Dianna
mystiklady is offline
Reply With Quote
View Public Profile Visit mystiklady's homepage!
 
 
Register now for full access!
Old 05-25-2008, 12:43 AM Re: CSS Wizards - HELP!
Experienced Talker

Posts: 33
Name: Rob
Trades: 0
Looks fine to me, what exactly is the problem again?
__________________

Please login or register to view this content. Registration is FREE
roje0913 is offline
Reply With Quote
View Public Profile
 
Old 05-25-2008, 04:09 AM Re: CSS Wizards - HELP!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I am very new to CSS and the problem I am having is I can not seem to get the "border" of my "container" tag to go all the way down unless I add a "height" attribute in the code.
Didn't look, but it sounds like the usual problem of not clearing the floats.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-25-2008, 11:17 AM Re: CSS Wizards - HELP!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yep.. lots of floats with no clearing.
__________________
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 05-25-2008, 02:57 PM Re: CSS Wizards - HELP!
Novice Talker

Posts: 7
Name: Dianna
Location: Victoria B.C. Canada
Trades: 0
Hello:

Thanks for the help . . . just what is "clearing" and which way do I clear the floats?

Sorry, I sure this is real basic stuff . . . but I need the basics! :-)

Dianna
mystiklady is offline
Reply With Quote
View Public Profile Visit mystiklady's homepage!
 
Old 05-25-2008, 05:21 PM Re: CSS Wizards - HELP!
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
After the floated divs, add this bit of code

<br style="clear:both" />

That should sort it

(also, <br /> was just an example, you can also use other tags, i just use <br /> because its self-closing)
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 05-26-2008, 09:58 AM Re: CSS Wizards - HELP!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
To understand clearing floats read here: 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 05-27-2008, 06:35 PM Re: CSS Wizards - HELP!
Dan Schulz's Avatar
Average Talker

Posts: 20
Location: Aurora, Illinois
Trades: 0
Quote:
Originally Posted by Gilligan View Post
After the floated divs, add this bit of code

<br style="clear:both" />

That should sort it

(also, <br /> was just an example, you can also use other tags, i just use <br /> because its self-closing)
Just to reinforce what the resident lovely lady in red said, I do not advocate or recommend the use of extra markup to clear an element since it introduces non-semantic code that has no place being in the document and can lead to code-bloat. Instead, just applying the clear property to the element following the float will take care of it (though you may have to use overflow: hidden; to force an element to contain its floated children - a common occurance in many of the layouts I develop).
__________________
What do Web design, Web development and search engine optimization all have in common? When done properly, they'll help your users find and get what they want when they want it.
Dan Schulz is offline
Reply With Quote
View Public Profile Visit Dan Schulz's homepage!
 
Reply     « Reply to CSS Wizards - HELP!
 

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