CSS and Background Gradients

M

Mr. Dabble

I have just applied a background gradient to all of the
pages to my site. Personally, I would have loved to do
this with a cascading style sheet (CSS). I tinkered with
CSS a tad, but I don't know how to implement the
background gradient that way. My site will potentially be
going through frequent style changes over the next few
months, and so using CSS seems to be something worth
implementing. I suppose an external JavaScript file could
work in its place, but that would be somewhat tacky.

Here is how the gradient is enforced:

<body bgcolor="#AACCFF" text="#000080"
style="filter:progid:DXImageTransform.Microsoft.Gradient
(endColorstr='#cce0ff', startColorstr='#5E9EFF',
gradientType='0');">

I basically snagged it from a script site. I don't know
how to translate this into CSS (I tinkered, but nothing
worked).

By the way, by using an external CSS, what percentage of
browsers will not display the site correctly (as dictated
by the CSS)? Secondly, how do you override external CSS
styles if you want, say, a portion of the text to appear
in a different color?

Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top