Manixman
Manixman

Reputation: 307

textarea shrinks in size if nothing inside it

I have a just a simple textarea with id #studentselect

#studentselect{
    max-width:350px;    
    min-width:350px;    
}

Now the issue I am having is that if there is nothing in the textarea when testing this in IE9 in compatability view, then the textarea's width is shrunk to like 20px. My question is that how can I get the default textarea width to be 350px if there is nothing in textarea?

Upvotes: 1

Views: 128

Answers (1)

TildalWave
TildalWave

Reputation: 1667

#studentselect{
  width:350px;    
}

I've uploaded this simple fiddle.

Upvotes: 1

Related Questions