|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Width of input type submit
The attribute "width" doesn't work with a input type submit?
I have tried this also but without success : .submit50 input[type="submit"]{ width: 50px; } Any idea? thkx |
|
#2
|
||||
|
||||
|
I assume the class "submit50" is meant to be put on the input itself?
Try this instead (I've bolded my change): Code:
<html>
<head>
<style>
input[type="submit"].submit50{
width: 50px;
}
</style>
</head>
<body>
<input type="submit" class="submit50" value="Go!">
</body>
</html>
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#3
|
|||
|
|||
|
I am little bit desapointed, nothing happens on the input submit!
My css: input[type="submit"].submit50{ width:50px;font-size:0.85em; } In my page: ... <INPUT TYPE="SUBMIT" NAME="test" VALUE="tst" class="submit50"> ... This works but for all input type : INPUT {width:50px} Any other idea? thkx |
|
#4
|
|||
|
|||
|
Target the form field by it's ID, or assign it a class. Apply the width to that class or ID selector.
As far as I know, attribute selection in CSS works in IE7, Mozilla, Safari(Win), Opera, and Netscape... but not IE6. I'm guessing that you test in IE6. You should test in all browsers. I just realized that this post is from 2006, but I already typed it... and hey, I found it searching Google, so somebody will read it. |
|
#5
|
||||
|
||||
|
Thanks for the update Mr Donkey... guess I should have originally detected that.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Width of input type submit |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|