Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8094041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:39:58+00:00 2026-06-05T20:39:58+00:00

i want to have an element inside a div set to height 100%. The

  • 0

i want to have an element inside a div set to height 100%. The element (an ul Element) must be set relative. The list items are set absolute but in reference to the parent element.

See the example: http://jsfiddle.net/mbecker/ee78G/2/

How to set the green ul Element to 100% height?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:40:00+00:00Added an answer on June 5, 2026 at 8:40 pm

    I removed the height: auto !important on #main. Then, I was able to set height: 100% to #list.

    I’m not sure if the height: auto is necessary though.

    http://jsfiddle.net/KBHcs/

    To give more explanation, the height: auto !important makes the content define the height of the element and the !important was overwriting the height: 100%. In this case, the “sd” was the only thing in the ul as the li are absolutely positioned, and therefore, are not part of the document flow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of elements inside a parent element. The parent element's height
Inside the div element set within variable called $target I have elements with single
Inside the div element set within variable called $target I have elements with single
I have an html td element with text inside. I want it so you
I have an element, like this: <div id=navleft> </div> I want to make this
I am trying to set the div to a certain height inside an empty
I have a <p> element I want to fix its position, but the text
I have a <div> element inside another <div> . I have an onClick event
I have a container div, and it needs to be positioned as relative. Inside
I want to select a set of DIV elements that are contained inside a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.