style sheet -moz-linear-gradient no show in web mobile browser?


Tags: css,css3,stylesheet

Problem :

I have a sample code:

<div class="title"><h3>Test Title<h3></div>

And css

.title {
    background: -moz-linear-gradient(center top , #6F6F6F 0%, #4E4E4E 100%) repeat scroll 0 0 transparent;
}

When I browser as PC is result OK, but when using mobile phone (samsung galaxy S3, iPhone 4) result not show this style, How to fix it ?



Solution :

the problem is your using the vendor prefixes -moz zo only a browser thats reading -moz wil work with this

this are the types to use:

-moz-linear-gradient
-webkit-linear-gradient
-o-linear-gradient
-ms-linear-gradient
linear-gradient

you can also try to only use the linear-gradient most of the browsers will support this

.title {
    background: linear-gradient(center top , #6F6F6F 0%, #4E4E4E 100%) repeat scroll 0 0 transparent;
}

you can also use this to generate the gradient


    CSS Howto..

    how to add a custom font to rails app

    How to keep text aligned with the middle of a textarea?

    How can I convince Firefox to redraw CSS Pseudo-elements?

    How to center an unordered list?

    How to make last element of second level of menu to drop up?

    CSS triangle over a div using :before and :after - weird offset, how to fix?

    How do I add a CSS3 transition to an image overlay?

    How to make a pure CSS div with a gradient background?

    How to create a css hoverover box with two section

    How to write special css for IE in external css file using css conditional comments [closed]

    How do I auto play my slideshow

    How do I remove an extra overlay layer on p element?

    how to add space at top of page

    How to apply css for only second occurance

    How to select only some children in CSS?

    How to align a flash movie to center with “overflow: hidden”?

    Ionic2 : How to set up css in single page

    How to add Video from project directory in the background of Div

    Show tooltip content when its hovers

    The UI Designers and Marketing people at my company don't want “awkward line breaks”. How to do with CSS or JS? [closed]

    show loading image before the content loads through jquery or ajax

    CSS: how to add a down arrow for the active link

    How can I get two buttons and textareas from separate forms to display inline?

    How to declare CSS font-face with font-weight and font-style properly?

    How to vertically align the baseline of text to a set point in HTML/CSS

    Blogger Template: how to change the color of the border css

    How can I get facing html elements to left-align and right-align, respectively, preferably using CSS?

    How to read CSS properties of elements dynamically loaded with external script on Android browser?

    How to make a dynamic-height DIV [duplicate]

    How to get menu text vertically aligned with inherited height