![]() |
Creating a gradient in CSS
More hack student coding incoming. :ouch:
I need to create a gradient background using CSS without using background-image. Right now that's being handled with this: Code:
html{ Thanks in advance. |
a word of advice from an experienced user: don't
1 x n pngs are very cheap in size. it's not worth the trouble |
It was an assignment requirement, and CSS cleanliness was not. I would never make a serious website like that.
Well, it's been graded, and I didn't do as well as I'd hoped. In hindsight, I could have combined all the background images into one image file with a transparent background and used background-position. :doh: That would be murder to load though. Better luck next time, I guess. Thanks for taking the time to reply. :) |
I just heard that the latest version of some browsers support CSS3, which includes gradients:
http://www.dynamicdrive.com/style/cs...ear_gradients/ I don't know a lot about CSS but it seems there wasn't any satisfactory solution before. But I don't know if IE supports CSS3--Chrome, Firefox, Opera and Safari reportedly do. |
Quote:
IE9 ambiguously claims they offer "more support" for CSS3... pfffft! |
Support for CSS3 never seems to be total. I didn't use the official syntax for gradients because none of my browsers (Firefox 3.6.16, IE8, forgot which Chrome) actually supported it, although Firefox and Chrome did have their own syntax for gradients. The other CSS3 property I wound up using was border-radius, which Chrome supports the official syntax for but Firefox 3.6+ and IE8 don't.
Hence the "more support" nonsense. |
The current time is 09:24 PM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.