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..

    How to scale down CSS background-image when using various background-positions?

    Behavior/Styling Separation - How to use IDs, classes and custom attributes for CSS and JavaScript?

    How to update current css version in asp.net

    How to achieve MS word tab function in html/ css?

    How to apply IE Fixes for LESS CSS [closed]

    How to Add Another Instance of Date picker in given Code

    How to add an image to an anchor tag using CSS?

    How to fit textarea exactly inside a div - CSS

    How to break a line after some certain width in css

    How to overlap two div with css

    How to apply a sifr rule to a hyperlink and also its a.active counterpart

    How to addClass in jQuery to all panels

    jQuery, CSS: Two divs, how can I make them “show”next to each other?

    How to select non-header cells with css

    How do I align two non-fixed width divs in the center of the browser screen?

    How to change the color of a div in css when another one is on focus

    How can I make an svg scale with its parent container?

    How to capture extra css class in addition to the pseduo class in this less (css) code?

    How to put a inside a

    without transpassing border height? [closed]

    How to change the order of columns in CSS template to put important content first?

    How do I get
    margin working?

    How can I fix left menu in bootstrap 3.0? [closed]

    How to apply css class to an html element using jquery in ASP .NET MVC?

    How to get the type word inside the input field once after pressing the Comma key and not after pressing space bar

    How to force IE to place two div boxes next to each other in it's browser window?

    How do I style a different border?

    How to apply CSS string using Javascript/jQuery without parsing/tokenizing to retrieve property-value pairs?

    How to centralise navigation bar

    How to make a button that can change background color of a doucment?

    How do I apply a CSS to a clutter stage?