View Single Post
Old 01-02-2013, 12:28 PM   PM User | #3
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,547
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there webdevs,

here is an example that works in Firefox, Safari, Chrome and partially in Opera...
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english"> 
<meta http-equiv="Content-Style-Type" content="text/css">

<title>radial gradient</title>

<style type="text/css">
body {
    background-color:#f0f0f0;
 }
div {
    width:400px;
    height:400px;
    border:1px solid #5af;
    margin:50px auto;
    border-radius:201px;
    box-shadow:16px 16px 16px rgba(0,0,0,0.4);
    background:-webkit-radial-gradient( circle, #0ff 0%,rgba(0, 0, 255, 0) 100%, #00f 95%);
    background:radial-gradient( circle, #0ff 0%, rgba(0, 0, 255, 0) 100%, #00f 95%);
 }
</style>

</head>
<body>

<div></div>

</body>
</html>
..and some...

Further reading:-
coothead
coothead is offline   Reply With Quote