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.

CSS Forum


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



Reply
Old 08-17-2008, 02:20 PM headers
Super Talker

Posts: 113
Name: Paul
Trades: 0
Are headers generally coded from scratch or are they images, Im slowly reading css tutorials and from talking to people they say they code everything from css, but I always thought the header way an image, also say I wanted a gradient background colour its simple to do in photoshop but how would you do it in css I can only get a solid colour:

<style type="text/css">
body {background-color: yellow}
h1 {background-color: #00ff00}
h2 {background-color: transparent}
p {background-color: rgb(250,0,255)}
</style>
fattony is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2008, 02:40 PM Re: headers
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
To get a gradient background, you can use a gradient image asthe background on the body element, and set it to repeat horizontally...

ie: background-image: url('yourbackground.gif');
background-repeat: repeat-x;
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 08-17-2008, 02:45 PM Re: headers
Super Talker

Posts: 113
Name: Paul
Trades: 0
I thought it must be something like that, thanks the the help
fattony is offline
Reply With Quote
View Public Profile
 
Old 08-17-2008, 04:50 PM Re: headers
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
background-image: url('yourbackground.gif');
background-repeat: repeat-x;
Or shorthand:
background: url(yourbackground.gif) repeat-x;

The quotes around the file name are not necessary.

Whether or not you use an image for a header depends on your layout, it isn't always an image at all.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to headers
 

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 1.05231 seconds with 12 queries