logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 12-24-2011, 06:31 PM   #1
designer_282
 
Join Date: Feb 2011
Posts: 31
Default How to link css background image to image in website folder

Hi, I have a picture in my images folder that I want to use as a background image in CSS. How do I link it so the image will appear?

background-image:url(?????);

I'm just trying to figure out how to format the link where the question marks are because the picture is on my computer, and not a server.
designer_282 is offline   Reply With Quote
Old 12-26-2011, 07:26 AM   #2
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

It shouldn't really matter if your image is on your computer during development. Just use relative links based on your website root. I assume you will be uploading the image to your server before launch?

Make sure you check out JC's useful article about site definitions; http://www.dreamweaverclub.com/cs5-setup.php get the set up right from the start and this should all just fall into place
Corrosive is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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


All times are GMT. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com