home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1780
Discussions: 188,401, Posts: 2,243,601, Members: 232,629
Old December 30th, 2004, 04:55 AM   Digg it!   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
CSS & Background Images

I currently have a page with the following css settings:

Quote:
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #7F9496;
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
How can I change the background from being a colour to being an image? What kind of code does the style sheet need to do this?

Can I simply change it to:

background-image: something.jpg; ?

ClubMed is offline   Reply With Quote
Old December 30th, 2004, 05:31 AM     #2 (permalink)
Kawaru wa yo!
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 16,137
Blog Entries: 7
background-image: ("filename.jpg");

Whir is online now   Reply With Quote
Old December 30th, 2004, 05:39 AM     #3 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
A little off-track from your comment, but for amazing use of css have a look at this http://www.meyerweb.com/eric/css/edg...iral/demo.html

James T is offline   Reply With Quote
Old December 30th, 2004, 05:41 AM     #4 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,327
I normally just use
Code:
body 
{
background-image:
url('image.jpg')
}
Above is the same thing though.

Pretty impressive page linked above.

Last edited by VHockey86 : December 30th, 2004 at 05:43 AM.
VHockey86 is offline   Reply With Quote
Old December 30th, 2004, 05:46 AM     #5 (permalink)
Kawaru wa yo!
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 16,137
Blog Entries: 7
Oops, my bad! Forgot the url(). Too late for my brain to work properly.
Whir is online now   Reply With Quote
Old December 30th, 2004, 05:47 AM     #6 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,327
ah, ive never tried it the other way so you fooled me =)

Last edited by VHockey86 : December 30th, 2004 at 05:52 AM.
VHockey86 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
layering in dreamweaver? sao95 Graphic Design and Digital Photography 34 April 30th, 2004 05:15 PM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
Sporadic internet connectivity (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:41 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28