I read a post a while back on how to ocntrol the size of an input box with css..well now I need that information, and can't find it/didn't write it down, so could some please help. The input box is blowing apart my table. Thanks for the help.
| SitePoint Sponsor |

I read a post a while back on how to ocntrol the size of an input box with css..well now I need that information, and can't find it/didn't write it down, so could some please help. The input box is blowing apart my table. Thanks for the help.





Try using some css:
You'll still need to do some testing with different browsers when using css with form elements. Even Opera 5 doesn't apply all the above css.Code:<style> .mytextbox { width: 150px; border-style: solid; border-color: #000000; border-width: 1px; color: #003399; background-color: #cccccc; font-size: 11px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; } </style>
You can also use the attribute 'height' but I'd only consider using this for <textarea>.
If you leave out the border properties in the css it'll use the default broswer style. But the default border style varies between browsers. For css the default border-style is 'solid' so in theory you can leave this out but if you do some browsers won't apply any of the border style attributes.
Shane

Thanks..its the width attribute that fixes it. I still have a strange problem though...it makes one of the input boxes have a 3d border and the other one has no border. They are both defined with the same class, are in the same <td> and in the same form...go figure. I have another question for you though GOOBER check at this url..I just need to know how to insert this into the asp code I have, and you seem to be the most knowledgeable about asp. Here it is: http://www.sitepointforums.com/showt...381#post119381





By the way, I'm sure shane rivals me in the ASP category. Not to mention Kevin (he just plain out SCARES me with the stuff he knows).
Let me know what exactly you are trying to do, and I can better help you. Just minor details in how you'd like to use the DatePart function.

I just want a date in this format February 23, 2001
I don't want it to say that it is Friday, February, 23, 2001 like vblongdate does.
Heres what I have:
Code:<% response.write(FormatDateTime(date(),vblongdate)) %>
Last edited by cckrocks; Feb 23, 2001 at 21:54.





Definately a question for Shane and / or KYank. I have minimal experience with this sort of question. Basically, what I would do is:Like I stated before, this is the quick version. I would PM Shane or KYank for help with this, at my example undoubtedly doesn't even work.Code:<%dim varDate, monthName varDate = Date() Select Case varDate Case "1" monthName = "January" Case "2" monthName = "February" Case "3" monthName = "March" 'NOTE: Finish this off, you know End Select varDate = varMonthName & Day(Date) & ", " & Year(Date)%>
Sorry I couldn't be of assistence![]()

That's alright, I got it figured out:
Code:<% response.write(MonthName(Month(Date)) & " " & Day(date()) & ", " & Year(date())) %>
I did a comparison of text fields in different browsers a while ago because I wanted to alter the width of the text boxes in server side code depending on the browser.
Comparison: http://www.guntrisoft.com/dev/james/...textboxes.html
although it's a bit of hassle because the size ratios are different depending on the font used in the box :O(
Drinky
Bookmarks