Solved

Div float right 100% height issue

Posted on 2009-04-09
6
1,175 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
Independent Software Vendors: 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get CSS styled menu to maintain the open selected menu? 13 53
Change color in a check box 8 34
CSS Formatting Getting Stripped 1 31
css messed up 8 25
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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 define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

738 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