SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Hybrid View
-
Feb 23, 2001, 18:48 #1
- Join Date
- Nov 2000
- Location
- A home in the hills where the grass grows green an
- Posts
- 183
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Feb 23, 2001, 18:57 #2
-
Feb 23, 2001, 19:43 #3
- Join Date
- Jan 2001
- Location
- Milton Keynes, UK
- Posts
- 1,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try using some 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
-
Feb 23, 2001, 21:31 #4
- Join Date
- Nov 2000
- Location
- A home in the hills where the grass grows green an
- Posts
- 183
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
Feb 23, 2001, 21:35 #5
- Join Date
- Sep 2000
- Location
- United States
- Posts
- 1,921
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Feb 23, 2001, 21:52 #6
- Join Date
- Nov 2000
- Location
- A home in the hills where the grass grows green an
- Posts
- 183
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Feb 23, 2001, 22:10 #7
- Join Date
- Sep 2000
- Location
- United States
- Posts
- 1,921
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Definately a question for Shane and / or KYank. I have minimal experience with this sort of question. Basically, what I would do is:
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
-
Feb 24, 2001, 00:37 #8
- Join Date
- Nov 2000
- Location
- A home in the hills where the grass grows green an
- Posts
- 183
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That's alright, I got it figured out:
Code:<% response.write(MonthName(Month(Date)) & " " & Day(date()) & ", " & Year(date())) %>
-
Feb 24, 2001, 03:15 #9
- Join Date
- Jan 2001
- Location
- England
- Posts
- 338
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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
-
Feb 24, 2001, 09:59 #10
Bookmarks