I have a doubt i applied linear gradient for body with no elements It’s not working . But , I add any elements in the body tag it will works .
HTML CODE:
<html>
<head>
<style>
body{
background:-moz-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3));
background:-webkit-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0.3));
}
</style>
</head>
<body>
</body>
Fiddle Link
Why is not working for empty body tag?
It is because your
bodytag has no elements inside it so do it like this : My FiddleCSS