Solved

Div float right 100% height issue

Posted on 2009-04-09
6
1,176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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