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 01-03-2012, 09:03 AM div height over 100%
Skilled Talker

Posts: 69
Name: Greg
Location: South Carolina
Trades: 0
So at

http://www.prestongreenhouse.com I am trying to get the right sidebar to stretch to 100%. prior to my efforts it was just a little box only as tall as the business hours, it stopped just after last line with 5:00pm.

I found the stickied thread out there and I am able to get the html and body tags to go to 100%, then set the min height of that sidebar to 100%. What is puzzling me is, why is it so tall? It seems to be over 100%

Any thoughts?
scuts is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2012, 12:35 PM Re: div height over 100%
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
height and width apply to the content area . Padding, borders and margins are then added to the values to make the overall element dimensions.

http://www.modtalk.co.uk/_site/code/.../three-column/
__________________
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?

Last edited by chrishirst; 01-03-2012 at 12:36 PM..
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-03-2012, 12:37 PM Re: div height over 100%
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Presenting The W3c Box Model
__________________
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 01-03-2012, 01:38 PM Re: div height over 100%
Skilled Talker

Posts: 69
Name: Greg
Location: South Carolina
Trades: 0
I am familiar with that but dont see any reason why the padding or margins would cause that area to be that long

Code:
.thrColFixHdr #sidebar2 (line 55)
{
float: right;
width: 200px;
background-color: #9ca06a;
background-image: none;
background-repeat: repeat;
background-attachment: scroll;
background-position: 0% 0%;
background-clip: border-box;
background-origin: padding-box;
background-size: auto auto;
color: #ffffff;
margin-top: 5px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
min-height: 100%;
}
scuts is offline
Reply With Quote
View Public Profile
 
Old 01-03-2012, 03:53 PM Re: div height over 100%
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
It's 100% of the screen height. If you scroll down a bit so that the upper border of the area is at the top of the screen, it exactly covers the whole height of the screen.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 01-03-2012, 04:09 PM Re: div height over 100%
Skilled Talker

Posts: 69
Name: Greg
Location: South Carolina
Trades: 0
now that makes a LOT of sense I more want the sidebar on the right to be 100% of the height of the main content area in the middle so that it is always as long as that. Guess I might have to rearrange my divs so that the is a child of the main content. that however may have unintended consequences...

thoughts?
scuts is offline
Reply With Quote
View Public Profile
 
Old 01-04-2012, 04:52 PM Re: div height over 100%
vultren's Avatar
Webmaster Talker

Posts: 583
Name: Tony
Location: Seattle Washington
Trades: 1
Quote:
Originally Posted by scuts View Post
Guess I might have to rearrange my divs so that the is a child of the main content. that however may have unintended consequences...
How would it create unintended consequences when that's what you want?
__________________

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

I am here to give advice as well as learn.

Please login or register to view this content. Registration is FREE
.
vultren is online now
Reply With Quote
View Public Profile
 
Old 01-05-2012, 08:38 AM Re: div height over 100%
Skilled Talker

Posts: 69
Name: Greg
Location: South Carolina
Trades: 0
So I went back and made the sidebar part of the maincontent. Set maincontent's height to 100% and then set the sidebars min height to 100% and it produced the same result. The sidebar was 100% of the page, not the container.

Any ideas on what I am doing wrong? I have set the sidebar back to a manual height for now, but that is the only change in the css.
scuts is offline
Reply With Quote
View Public Profile
 
Old 01-30-2012, 04:53 PM Re: div height over 100%
Skilled Talker

Posts: 69
Name: Greg
Location: South Carolina
Trades: 0
I have been messing with this and messing with this and still can not get it right. I now have the issue on another sight as well.

I do not want the height of the site/page to be 100% of the window, more 100% of its parent.

so if I have

HTML Code:
body
  main container
    inner left container
    inner right container  (want this container to be 100% of inner left)
  end main
end body
the right container is nested inside of the left
scuts is offline
Reply With Quote
View Public Profile
 
Old 01-31-2012, 04:17 AM Re: div height over 100%
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You will have to use javascript (i must rewite that someday soon) or Faux Columns.
__________________
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!
 
Reply     « Reply to div height over 100%
 

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