4

the submit input type, normally has a 'bevel' 3D on the side corner. how to use css to make it plain look?

2 Answers 2

4

This should work for what you need:

 input 
 {
        border: 0;
 }

or if you wanted to be more specific:

 input[type=button], input[type=submit] 
 { 
        border: 0 
 }

or you could use an inline styling:

<input type=button value="Testing" style="border:0">
Sign up to request clarification or add additional context in comments.

Comments

2

Adding any kind of border to the button will remove the browsers built in '3D effect'. Something like the following will add a simple grey border instead.

input[type=submit] {
    border: 1px solid #333;
}

Note that the default button styling is dependent on both browser and operating system, so it is definitely worth applying your own styling if you want total control of the look of your page.

1 Comment

In fact the default styling for all HTML elements is defined by the W3C. That doesn't stop different browsers and OSs from doing things differently, but there is supposed to be at least some degree of conformity in the defaults.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.