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.

Website Design Forum


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



Freelance Jobs

Reply
How do i put a colour over my background?
Old 08-17-2006, 06:39 AM How do i put a colour over my background?
Average Talker

Posts: 23
Name: Chris
Trades: 0
Look Here

My Site

Notice in the first link that there is a white 'background' colour over the background pattern which is a stripey design. I want to be able to do this on my website, but at the moment i am just using a background image i designed myself so it would give a light blue background with a design at the sides (it is all an image - view background picture to understand). This does make it look like the first link, but it does not work properly when changing resolutions - so i need to know how to do the same as the first link...this might be a bit confusing.
Chrisy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2006, 03:32 PM Re: How do i put a colour over my background?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
This is not all that hard to do. I have done that effect on these 3 sites:

Primary Health Group - Johnston Willis
http://www.southerkentuckyurology.com
http://www.lewis-galephyisicians.com

The patterned backgound goes into the container <div>
The white "box" on top is another <div> with the background color set to white.

I actually use 3 on some sites to get the long horizontal bar in.
__________________
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
 
Old 08-17-2006, 04:09 PM Re: How do i put a colour over my background?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Code:
body {
     margin:  0;
     padding:  0;
     background-color:  #000000;  /* replace with a background colour or background of your choice */
     color:  #000000;
}
div#content-area {
     margin:  10px auto; /* the 10px provides a top and bottom margin; auto centers the div  */
     width:  760px;  /* replace with your div width. */
     text-align:  center;  /* needed for older IE versions. */
}
div#content-area * {
     text-align:  left;  /* counteracts the IE older versions text-align above. */
}
There's your CSS. The body should be good from there.

Example site: Lighten Up 2006: This year, let's use less electricity!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-21-2006, 11:04 AM Re: How do i put a colour over my background?
Average Talker

Posts: 23
Name: Chris
Trades: 0
Is this done using frames?
Chrisy is offline
Reply With Quote
View Public Profile
 
Old 08-21-2006, 01:11 PM Re: How do i put a colour over my background?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No frames, no tables.. it's all CSS.
__________________
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 How do i put a colour over my background?
 

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