Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

css how to get rounded corners on button.

I have a button with CSS on it and it has no rounded corners right now. I have the left and right images (corners) how can i apply them to the CSS below? Thanks for any help.

.myButton
{
    background-image: url(../../Images/SubmitButtonBack.png);
    color: White;
    font-family: Verdana;
    font-weight: bold;
    font-size: 8pt;
    width: 160px;
    height: 22px;
    border: none;
    position: relative;
    cursor: pointer;
    margin-bottom:5px;
}
like image 659
user516883 Avatar asked Feb 28 '11 21:02

user516883


1 Answers

CSS3 allows you to do this by specifying a border-radius instead

http://www.css3.info/preview/rounded-border/

like image 97
Arve Avatar answered Sep 28 '22 08:09

Arve