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.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Im Having DIV problems with Height
Old 09-25-2008, 04:20 PM Im Having DIV problems with Height
Junior Talker

Posts: 4
Name: Chris
Trades: 0
Hi,
I just started messing with dreamweaver for like week.
Well, this is what I have so far:
http://i274.photobucket.com/albums/j...Picture2-1.png

The black part is a div. I want the bottom of the black part to always touch the bottom of the page. Like if someone had a big screen, I want the black part to be always connected to the bottom of the page. How do I do that?

I tried:
-http://www.wickham43.supanet.com/tutorial/fullheightdiv.html
But when I put "html, body { height: 100%; margin: 0; }" inside the html, its just plain text, and not coding, so it doesnt do anything.
Boo2Hed is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-25-2008, 04:29 PM Re: Im Having DIV problems with Height
Junior Talker

Posts: 4
Name: Chris
Trades: 0
I also tried clicking on body in the css panel, adding the property of height 100% and margin bottom 100%. And then clicking on #layout (the black part) and added the property min-height 100%.

Nothing changes :|
Boo2Hed is offline
Reply With Quote
View Public Profile
 
Old 09-25-2008, 06:11 PM Re: Im Having DIV problems with Height
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
But when I put "html, body { height: 100%; margin: 0; }" inside the html, its just plain text, and not coding, so it doesnt do anything.
That's because "html, body { height: 100%; margin: 0; }" should be in a stylesheet

Code:
<style type="text/css">
html, body { 
   height: 100%;
   margin: 0;
}
</style>
__________________
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 09-26-2008, 07:13 PM Re: Im Having DIV problems with Height
Novice Talker

Posts: 7
Name: Lubo
Trades: 0
Shouldn't
Code:
height:100%;
be in the CSS properties of the black div Boo2Hed's about, instead in the body?
__________________

Please login or register to view this content. Registration is FREE
lub07 is offline
Reply With Quote
View Public Profile Visit lub07's homepage!
 
Reply     « Reply to Im Having DIV problems with Height
 

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