Make an input box the width of the page?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Make an input box the width of the page?

Post by toasty2 »

Is it possible to make an input box that will span the width of the page (or a div containing it)?
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: Make an input box the width of the page?

Post by matthijs »

Yes.

Code: Select all

 
input { width:100%; }
 
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Re: Make an input box the width of the page?

Post by toasty2 »

matthijs wrote:Yes.

Code: Select all

 
input { width:100%; }
 
Duh. :D
Post Reply