Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove drop shadow in basic links in Jquery Mobile?

<div data-role="page" style="background:#000">
    <a href="http://google.com">test</a>
</div>

As you can see here: http://jsfiddle.net/KCqqN/

Jquery Mobile appears to add a white color drop shadow, how to get rid of that?

like image 799
IMB Avatar asked Dec 17 '12 18:12

IMB


1 Answers

In your stylesheet (make sure it is below the jQuery mobile stylesheet)

Simply set the text-shadow yourself, to whatever you want.

.ui-body-c, .ui-overlay-c { text-shadow:0 0 0; }

In the jsFiddle it loads the jquery mobile css afterwards, so if you throw an additional tag in there (or use !important, better not to though) it'll trump it.

body .ui-body-c, body .ui-overlay-c { text-shadow:0 0 0; } // more specificity

http://jsfiddle.net/KCqqN/2/

like image 113
Mark Pieszak - Trilon.io Avatar answered Oct 30 '22 09:10

Mark Pieszak - Trilon.io