height

height
CSS height Property
The CSS height property is used to specify the height setting that some content containers can receive. This only works on elements that are "block" display type content boxes. For instance if you try to set the height on a <span> element by default it will not adhere to your height property, but if you try to set height for a <div> element it will adhere to the height property.
CSS CODE EXAMPLE
<style type="text/css">
#myDiv {
    height: 50%; /* use %, exact pixel size, or auto */
    width: 75%;
    border: #59ACFF 1px solid;
    background: #CCE6FF;
    padding: 12px;
}
</style>
<div id="myDiv">My div content ...</div>
 
My div content ...

Possible Values:

pixel length •• percentage •• auto

0 Response to "height"

Post a Comment