Reputation: 805
Guys.. I want my html div not to resize after putting some text..
as you can see in the picutre above is set the minimum height as 250px; but after putting some
LAYER 1
manytime. may 20 times, im expecting that the div height will be 250 px but it automaticaly resize? Anyone know how to set the height of the div as fix? even adding a text to it will not make the div automaticaly resize? Thank you..
Upvotes: 1
Views: 157
Reputation: 7722
Try the following; note that you'll want overflow:hidden;
if you don't want the content to spill out of the div:
div#yourid {
height: 250px;
overflow: hidden;
}
Upvotes: 3
Reputation: 4264
Instead of setting minimum height as 250px, set height
as 250px...
Upvotes: 5