Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html button, the value="submit" is not showing up?

Tags:

html

css

button

I am looking for the value="submit" to show up in the middle of the button. I am not seeing any text, not sure why?

<button type="button" class="button btn_big_blue" value="Submit"></button>

.button{
    display: block;
    width: 137px;
    height:    44px;
    text-align:center;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color:#fff;
    border:none;
    cursor: pointer;
}

.button.btn_big_blue {
    background: url(/img/btn_big_blue.png) no-repeat;
    color: #fff;
}
like image 379
Xtian Avatar asked Dec 06 '22 23:12

Xtian


1 Answers

when you use the button tag, you put the text you want to be in the button between the opening and closing tag.

<button>Submit</button>

the value="Submit" is only for <input type="button">

like image 169
heymrcarter Avatar answered Dec 27 '22 13:12

heymrcarter