Solved

Div float right 100% height issue

Posted on 2009-04-09
6
1,173 Views
Last Modified: 2012-05-06
Hi all,

I have a div which is floating to the right. I have given it a background color and need the background of the div to go all the way down to the footer (100%) ... even if the page grows in height. I canot get to to work in %  .I can only get it to work setting a fixed height.

I've already set the parent (body and container to 100% height) , but it still does not work.

Any ideas of tricks to make this happen please?

thx

st3vo
0
Comment
Question by:ST3VO
  • 3
  • 2
6 Comments
 

Author Comment

by:ST3VO
ID: 24111238
Anyone please?
0
 
LVL 13

Accepted Solution

by:
myderrick earned 250 total points
ID: 24112550
I am finding you a perfect solution. But in the interim  will advice the following:

Create a container div for the floated div and set a fixed height. and the the floated div will work with the 100%. You can even use a min-height property and do not forget to add overflow: auto the the container div.

Awaiting feedback

MD
0
 
LVL 13

Expert Comment

by:myderrick
ID: 24112603
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 13

Expert Comment

by:myderrick
ID: 24112640
0
 
LVL 42

Assisted Solution

by:David S.
David S. earned 250 total points
ID: 24113483
Equal columns is often an illusion created with backgrounds. You could use Faux Columns to make the elements appear to have equal heights.

http://www.alistapart.com/articles/fauxcolumns/
http://www.communitymx.com/content/article.cfm?cid=AFC58
0
 

Author Closing Comment

by:ST3VO
ID: 31568707
Both helped, now done. Thx
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jquery add something to a div 4 43
css help with menu spacing 10 47
Remove third quote mark from widget 6 24
css selector 1 17
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question