Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-04-2011, 05:50 PM   #1
wackypanda
Abandonia nerd

 
Join Date: Jan 2011
Location: ,
Posts: 51
Default Creating a gradient in CSS

More hack student coding incoming.

I need to create a gradient background using CSS without using background-image. Right now that's being handled with this:
Code:
html{
	background: #e8e8e8; /* fallback for non-support */
	background: -webkit-gradient(linear, left bottom, left top, from(#e8e8e8), to(#8c8c8c)); /* Safari and Chrome */
	background: -moz-linear-gradient(top, #8c8c8c, #e8e8e8); /* Firefox 3.6+ */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8c8c8c', endColorstr='#e8e8e8'); /* IE8 */
	}
body, #header, #footer {
	width: 720px;
	}
body {
	padding: 10px 10px 10px 10px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 15px;
	-moz-border-radius: 15px; /* Firefox */
	background-color: #ffffff;
	}
The body selector is included because IE won't display its white background over the html background with this code, which is one of the main things I need to resolve. The other is the general sense of hackery. I don't know if there's a cure for that though.

Thanks in advance.
wackypanda is offline                         Send a private message to wackypanda
Reply With Quote
 


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a DOS 6.22 install CD Doink Tech Corner 10 30-01-2014 05:06 PM
Need Help Creating CD-ROM Rip Expack2 Tech Corner 9 27-10-2010 07:40 AM
Creating Your Own Brushes. Sean Art Tutorials 9 07-10-2005 04:16 PM
Creating Your Own Patterns Sean Art Tutorials 0 03-10-2005 05:25 PM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 04:53 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.