Open Tech Support
Open 

Tech Support Community
Back to HomeCommunityReviewsGuidesDownloadsLinkageMarketplaceContact Us

 »  Forum Navigation

Home
Post a Question
About Our Site
Support Our Site

What is this site?
Who are we?

Tolitz.Com - The Cynic Eye of the Third World Guy

Enhanced with Snapshots

 

 »  Advertisement


Go Back   Open Tech Support Community > SUPPORT FORUMS > Internet




Reply

 

LinkBack Thread Tools
Old 06-02-2008, 02:40 PM   #1 (permalink)

Learning From My Mistakes
 
newman55's Avatar
 
Join Date: Sep 2003
Location: Miami, FL
Posts: 623


images in css?

I am working on redesigning a website that is all in html by putting all the necessary coding into a css page. i also have to redesign the banner. My question is is it possible to put the image banner into the css page( or the link at least)? P.s. unlike my last question with coding such as this, i will not go into a rage or whatnot and posting something as inappropriate and immature as i did last time a year ago. If i get no reply ever, then i get no reply ever. I am not expecting anything. Any answers i get will be greatly appreciated. thanks.

-----------------------------
Lets Go Heat!!!

http://www.imagehosting.com/out.php/i350133_viper2.jpg
newman55 is offline   Reply With Quote
Sponsored Links
Old 06-03-2008, 06:44 AM   #2 (permalink)

Super Moderator
 
Tecil's Avatar
 
Join Date: Nov 2001
Location: Idaho
Posts: 2,762


Re: images in css?

Yes you can stick the banner image in the css code and call in from your website html. You would do something like.

Code:
banner {
display: block;
background: url(banner.jpg) no-repeat;
}
Then in your html page you could call it as

Code:
<a id="banner" href="http://yourlink.com" title="Banner">&nbsp;</a>
Tecil is offline   Reply With Quote
Old 06-03-2008, 08:47 AM   #3 (permalink)

Spiky Hair Dude
 
Mathias's Avatar
 
Join Date: Feb 2004
Location: Between the 10th and 11th Dimensions
Posts: 321


Re: images in css?

Code:
banner {
width: #px;  <-----
height: #px; <-----
display: block;
background: url(banner.jpg) no-repeat;
}
Might want to add those for good measure. # is where the dimensions of your image go.

-----------------------------
OS____Windows XP Home SP3
CPU___AMD Athlon X2 3800+ / 2.8GHz
HSF___Arctic Cooling Freezer 64 Pro
Mobo__GIGABYTE GA-M61P-S3
GPU___GeForce 7600GT, 256MB GDDR3
RAM___A-DATA Extreme, 2GB, DDR2 800 / 4-4-4-12
PSU___FSP Group 450W
HDD___Western Digital Caviar 250GB
Case__Antec Nine Hundred
Mathias is offline   Reply With Quote
Old 06-27-2008, 09:40 PM   #4 (permalink)

Learning From My Mistakes
 
newman55's Avatar
 
Join Date: Sep 2003
Location: Miami, FL
Posts: 623


Re: images in css?

thanks

-----------------------------
Lets Go Heat!!!

http://www.imagehosting.com/out.php/i350133_viper2.jpg
newman55 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
McAfee Security Suite 2007 blocking images on some sites RioKhanada Software 4 08-06-2007 04:31 PM
Images do not appear in IE 6 fweaver Internet 1 07-29-2003 04:11 PM
Thumbnails of Images are Fair Use TotalRecall General News 0 07-08-2003 03:02 PM
Corbis Files Suit Against Amazon For Illegal Use of Images TotalRecall General News 0 07-01-2003 02:49 PM
stabilizing MS Word file with images for posting to the web Howard Software 2 08-14-2002 07:06 AM







Powered by vBulletin® Version 3.8.2. Copyright © 2000-2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.