Default CSS

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Default CSS

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

Not cross browser solution by using CSS2 attribute selectors:

Code: Select all

		INPUT[type=submit]
		{
			color: red;
		}
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply