Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need help with background color.
Old 02-19-2006, 01:43 AM Need help with background color.
Novice Talker

Posts: 5
Trades: 0
I'm using Dreamweaver and I think what I'm looking for is html code. I've seen several sites that have the background color as a smooth flowing gradiant from top to bottom. I'm helping out a freind and he wanted the background to look like this - http://members.jcom.home.ne.jp/chuck-s/ - before the page loads there is like a chunky gradiant for the background. I think the smooth gradiant will look better but I honestly don't know how to code either. If anyone could help it would be greatly appreciated!
devilwithin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2006, 03:58 AM Re: Need help with background color.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
gradients can't be done in HTML. you need a thin slice of a colour gradient image then it should be set as the background colour for your document.

see http://www.tizag.com/cssT/background.php for more
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-19-2006, 11:12 PM Re: Need help with background color.
Junior Talker

Posts: 1
Trades: 0
Make a image 1 pixel wide by the length you would like. Use an image editor that has a vector gradient tool so that it isn't choppy. If you would like it to be the background of your whole page use:
HTML Code:
<body style="background-image:url('image.gif');background-repeat:repeat-x">
If you would like the content to scroll over the image (image doesnt move) add 'background-attachment:fixed' to the style list.
__________________
Justin Rouleau
Black Pearl Web Design and Development

Please login or register to view this content. Registration is FREE
jmrouleau is offline
Reply With Quote
View Public Profile Visit jmrouleau's homepage!
 
Old 02-21-2006, 09:44 PM Re: Need help with background color.
jyoz22's Avatar
Ultra Talker

Posts: 278
Location: Orlando, FL
Trades: 0
Actually Gradients do exist in html.

If you want the background to be gradient add this to the <head> part of the doc.

<style>
body {filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#000000', endColorStr='#FFFFFF', gradientType='1')}
</style>

notice the bold green # - change to 0 for vertical gradient.

learn more about this...
http://msdn.microsoft.com/library/de...s/gradient.asp
jyoz22 is offline
Reply With Quote
View Public Profile
 
Old 02-22-2006, 01:06 AM Re: Need help with background color.
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
jyoz is right though there is one problem. The code will only work in IE. It's proprietary microsoft code. If you know all of your visitors will be viewing yout site in IE it's great. Otherwise using a gradient image is the way to go. This is actually one of those things I wish other browsers could do. I suspect we'll be able to create gradients at some point with css alone.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 02-22-2006 at 01:07 AM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 02-22-2006, 01:38 PM Re: Need help with background color.
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
You need to make an image that is one pixel (or a couple more) wide, and approximately 700 pixels tall. Then use this CSS style to add it to the background:

Code:
body {
background-color: #000;
background-image: url(image.jpg);
backgroung-repeat: repeat-x;
background-position: top;
background-attachment: fixed;
}
The background color should be the same as the bottom of your gradient. It will give the appearance of a smooth gradient from top to bottom, and it won't scroll.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Reply     « Reply to Need help with background color.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24623 seconds with 12 queries