pdkv2 Posted November 2, 2008 Share Posted November 2, 2008 Hello board, i am a new to css i have a web page in which i am setting the logo for the site the logo may be one of the files like logo.jpg, logo.gif, logo.bmp or logo.png one of the above files will be available(the extension may be any of above) in images folder and i have to use that logo file for display. means if logo.jpg is available then display logo.jpg else if logo.gif is available then disply logo.gif and so on. please help me to sort out this problem. Thanks in advance. Sharad. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 2, 2008 Share Posted November 2, 2008 Is it really such hardship to just put this in when you develop your project? The logo for the site is something that I would assume is identical on every page - so just select the image and type it in your css. In order to set this kind of thing dynamically as you have asked - you'd need some server side code to look in a directory and pick he file for you and then update the css file by putting the path to that image in - something pretty pointless IMO. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.