I want to style a submit button without adding any extra code in the input tag which creates the submit button.
The button is generated from an element in a content management and i can't add any code to it.
The closest option I have is putting a class in the td where it appears
I can change all input styles but that is not what I want.
Isn't there an option to do this: For example something like
input.submit { etc...
(only the code above doesn't work)
thanx for any help...
Styling a submit button without adding class or style in tag
Hi The Saint,
You could use Attribute Selectorsinput[type="submit"]{color:red;}
The only problem is the lack of support by most browsers.
So we need to find another method.
Is the button contained by anything apart from the form?
Or are the other input fields contained by something different?
Styling a submit button without adding class or style in tag
If you give its immediate parent element a class or id, such as the td, then you can use:
td.blah input
{
...
}
On the HTML:
<td class="blah">
<input type="submit" />
</td>
Styling a submit button without adding class or style in tag
I think this is getting me somewhere...
thanx for the fast respond.