How to stretch full height of a div using CSS? [closed]


Tags: html,css

Problem :

How to stretch full height of a div using CSS?

I'm trying to stretch a div 100%. Applied min-height: 100%; but no result.



Solution :

In your css, try add this, it work for me :)

.divName{ 
    width: 100%; 
    height: 100%; 
    position: fixed; 
    top: 0; 
    left: 0;
    background:red;
 }

    CSS Howto..

    Load More / Show Less issues using jquery

    How can vertically center a chunk of line-wrapping text next to an image?

    How to properly style current_page_item based from theme

    How to Display a div on mouse-over using jquery ?

    How to index star rating in google?

    Bootstrap 4 and user details - how to do the “bootstrap” or correct way?

    How to Make CSS Work on 404 Error Page?

    How to use CSS to create a particular stylized, multi-lined text box?

    How to replicate {cursor: hand; cursor: pointer} in jQuery

    How to make drop down show 2 columns

    using the unorthodox `head {display: block}` to show text to user?

    How do I make this carousel implementation better?

    How can I insert new text with a hyperlink into a page in CSS?

    How to properly float two columns side by side with css

    How can I make a DIV background change color on hover if the DIV has a class of “disabled”? [closed]

    How to remove Firefox's button outline when mouse press, not click, hover or forcus

    how to align the content to center of page using css

    how to go bottom of a website like back to top using javascript?

    How to display an HTML list non-nested?

    How to override the CSS !important property when the original file loads after the customized css file

    How to change rows in css from 3x3 on desktop, to 2x4 on mobile?

    How to center align a glyphicon to the middle of the page at all screen sizes

    How can I make this section of my webpage responsive? [closed]

    How to overlay “transformed” element?

    How to use HTC behavior in jQuery CSS for IE?

    How to apply CSS changes for the last

    element of the 3rd div class span8

    How to keep grid width if colums are switched in column menu

    CSS: How to fit a circular progress bar according to screen size (mobile)

    jQuery hide/show issue with offset

    How to change CSS style upon clicking button with JS