About

Breaking

Tuesday 23 May 2017

How to set element size width, height, max min height width

You can set HTML element size using width or height property.
Also you can set element maximum height width or minimum height width.

CSS element size properties

following all properties are supported, all defined type value. using this properties you can set element size.
आप चौड़ाई या ऊंचाई की संपत्ति का उपयोग कर HTML तत्व आकार सेट कर सकते हैं
इसके अलावा आप तत्व अधिकतम ऊंचाई चौड़ाई या न्यूनतम ऊंचाई चौड़ाई सेट कर सकते हैं।

सीएसएस तत्व आकार गुण

निम्नलिखित सभी गुण समर्थित हैं, सभी परिभाषित प्रकार मान इस गुण का उपयोग करके आप तत्व आकार सेट कर सकते हैं।

Property
Value
Description
width
height
max-width
min-width
max-height
min-height
height: auto;
height: 75%;
height: 50px;
height: inherit;
height: 0;
auto set
percentage value
pixel value
parent value inherit
unit less 0 value

 

Set element maximum and minimum size

Following example are describe how to set element size as well as also define element maximum and minimum size. let check,
In this example <textarea> element height and width both are set also set maximum or minimum height width value.
तत्व अधिकतम और न्यूनतम आकार सेट करें

निम्नलिखित उदाहरण का वर्णन है कि तत्व के आकार को कैसे निर्धारित किया जाए और साथ ही तत्व अधिकतम 
और न्यूनतम आकार को परिभाषित किया जाए। चलो,

इस उदाहरण में <textarea> तत्व की ऊँचाई और चौड़ाई दोनों सेट हैं अधिकतम या न्यूनतम ऊंचाई चौड़ाई मान।

Example Code:

 

<body>
    <textarea style="height:70px;max-height:150px;min-height:60px;width:400px;max-width:550px;min-width:250px;">This division part has relative positioning
    for each elements.</textarea>
</body>

 

Example Result:

 

 

No comments:

Post a Comment