Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 100% and wider?

Reply
Thread Tools

100% and wider?

 
 
Edwin Knoppert
Guest
Posts: n/a
 
      10-17-2006
I have a textbox and have set it's width to 100%.
The textbox resides in a usercontrol but in this case i want to force the
size of the textbox let's say 500px or 100%
So if it can't fill the pagewidth (100%) a minimal size of 500px must be
enforced.

I know it can cluther the page, that is not important for that moment.


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      10-17-2006
You can set 2 CSS styles for the textbox: min-width and width. Example:

<form method="post" action="">
<div style="width: 600px; overflow: scroll">
<input name="Text1" type="text" style="width: 100%; min-width:500px;"
/></div>
</form>

If you set the width of the div to less than 500 px, it will have a scroll
bar, and the text box inside it will be 500 px wide.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"Edwin Knoppert" <(E-Mail Removed)> wrote in message
news:45349f74$0$2029$(E-Mail Removed). ..
>I have a textbox and have set it's width to 100%.
> The textbox resides in a usercontrol but in this case i want to force the
> size of the textbox let's say 500px or 100%
> So if it can't fill the pagewidth (100%) a minimal size of 500px must be
> enforced.
>
> I know it can cluther the page, that is not important for that moment.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tetration (print 100^100^100^100^100^100^100^100^100^100^100^100^100^100) jononanon@googlemail.com C Programming 5 04-25-2012 08:49 PM
100% TABLE + 100% ROW + 100% DIV..? fred Javascript 3 03-17-2005 04:25 AM
100 DVD-R AND 100 CASES FOR SALE Phealix DVD Video 3 12-06-2004 03:17 AM



Advertisments