css shades

Started on the old forum in October 2012 · view the original in the archive · old links redirect here

3 replies · 1,516 views · started 14 years ago · 1 min read

3 participants
zain Junior · 43 posts #1

i have a question ....

how do i make 2 shades of a colour on a div tag example red starts bright but by the bottom ends up light red , i know alot of people use images that are made that way but i want to learn the css way 🙂

thanks in advance zainul

softwarefreak Senior · 349 posts #2

zain wrote: i have a question ....

how do i make 2 shades of a colour on a div tag example red starts bright but by the bottom ends up light red , i know alot of people use images that are made that way but i want to learn the css way 🙂

thanks in advance zainul

Thats done w/ CSS 3, you can read more here CSS3 Gradient background

Supported in all major web browsers, except IE (6-8), For IE(except version 9) you need to use CSS3 PIE: CSS3 decorations for IE

You also need to put a HTML 5 doctype while using CSS 3 for cross browser compatibility(not that much imp), But MS IE(6-8) doesn't know what's HTML 5, so you need to use html5shiv - HTML5 IE enabling script - Google Project Hosting

You can see more about the cool feature of CSS 3 here CSS3 Please! The Cross-Browser CSS3 Rule Generator

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

zain Junior · 43 posts #3

thanks softwarefreak this really helped 🙂

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close