fr3d
fr3d

Reputation: 685

how to show text in a button with css

I´ve got the following code:

jsfiddle

http://jsfiddle.net/9b3YG/

html

<a class="button" href="">
        <span class="fill_link"></span>
        Test
    </a>

and I want that the text of the link is in front of the span "fill_link", but i only can change the css of the class "button" and the class "fill_link".

Thanks

Upvotes: 3

Views: 791

Answers (2)

Hector
Hector

Reputation: 216

set

z-index: -9999;

for the fill_link class.

edited in jsfiddle

Upvotes: 5

Justinas
Justinas

Reputation: 43507

Just wrap text <span class="text">Test</span> and apply z-index for it. JSFiddle

Upvotes: 1

Related Questions