user959456
user959456

Reputation: 575

gwt-css-background-image-text

I have a web-application with gwt.

I have a textare with this css:

.progress60{
    font-family: Lucida Sans;
    font-size: 13px;
    width: 215px;
    height: 27px;
    background-image: url(images/60.png); 
}

I want that the text inside is in the vertical-middle.

How can i do this?

Upvotes: 0

Views: 232

Answers (1)

Rupert Horlick
Rupert Horlick

Reputation: 681

Use padding on the text like so: padding-top: 7px; 7 being (27 - 13)/2. I'm not sure whether this will add padding to the background image but give it a try!

Upvotes: 1

Related Questions