navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Tip: Put your css images in a separate directory

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Tip: Put your css images in a separate directory
Page: [1]
 
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
Tip: Put your css images in a separate directory - 3/5/2004 14:34:38   
Instead of putting your backgorund images or any images that you use in a stlye sheet in with all your other images create a directory under your style sheet directory called (for example) cssimages and reference it in the usual way.

Your code might look like this:

<style type="text/css">

{
background-image: url(cssimages/filename.xyz);
background-repeat: repeat ;
}
</style>


Doing it this way saves you having to work out the relative references and is better housekeeping too. Don't solve the problem - avoid the problem!

:)

(This is a problem that people write to me about a lot - today I sent my 59th reply to a question about "Why doesn't my background show up" since January 1st 2004.)

< Message edited by gorilla -- 3/5/2004 14:42:11 >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower


c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Tip: Put your css images in a separate directory - 3/5/2004 15:54:38   
Cool, thanks Gorilla, I like this one!

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to gorilla)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Tip: Put your css images in a separate directory
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts