Page 1 of 1

Default CSS

Posted: Thu Nov 29, 2007 11:53 pm
by rajan
Is there any way to give default css for submit button?
I want to create button having css , background image which repeats and I want that where I use input type submit it will apply automatically without giving me class and this class apply to only submit type buttons not to any input type fields.

Posted: Fri Nov 30, 2007 12:46 am
by Chris Corbyn
The easiest (and most effective cross browser) way to do it is to apply a class name to each submit button. Is this not an option for you?

Posted: Fri Nov 30, 2007 4:51 am
by VladSun
Not cross browser solution by using CSS2 attribute selectors:

Code: Select all

		INPUT[type=submit]
		{
			color: red;
		}