Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Prob with Text Field
Bk Jacky
Ranch Hand
Posts: 74
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi
I want variable size text fields whose width increses or decreases as we increase the with of web-browser.Is it possible? if yes,tell me with example.
thanks in advance
SCJP1.4<br />SCWCD1.5<br />"Nothing is impossible"
Eric Pascarello
author
Posts: 15385
6
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You try setting the css width with a percentage value?
Eric
Tim McGuire
Ranch Hand
Posts: 820
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This will cause the behavior you want:
<HTML> <HEAD> <style> div.row input { width: 100%; } </style> </HEAD> <BODY> <form name="e"> <div class="row"> <input type="text" name="fname" value="" tabindex="1"> </div> <div class="row"> <input type="text" name="lname" value="" tabindex="2"> </div> </FORM> </BODY> </HTML>
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
prob with pre tags
How can i increment the number of rows by clicking a button
Help Needed For Resizing of Swing Comp
Image copy with custom size
How to create a folder through java
More...