Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2009, 06:51 PM   #1 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 363
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
background image with css

Hello,
I am really bad with css. There is a text box on my blog with the following proprieties:

Quote:
#headline {
width:590px;
float:left;
background:#fff;
padding:10px;
font-size:1.05em;
line-height:1.5em;
margin:0;
}
I want to use an image in the background. I tried to replace the
Quote:
background:#fff;
with
Quote:
background: url("my image url") no-repeat top;
but it looks like this is not the way to do this.

Could someone show me how to do this?

Thank you for your time!!!
__________________
Aquarium Life Live stock ID database

MadCaptain's Aquarium The only filter that remove Nitrates, Phosphate and Reduce Fish Lost! Learn how to cycle your fish tank in 24h!!!
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2009, 08:25 PM   #2 (permalink)
Contributing Member
 
chaka42's Avatar
 
Join Date: 02-23-04
Location: midwest
Posts: 279
iTrader: 1 / 100%
Latest Blog:
Big Green Help

chaka42 is on the right pathchaka42 is on the right pathchaka42 is on the right path
Try this:
Code:
background:#fff url(imageurl) top no-repeat;
chaka42 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2009, 09:46 PM   #3 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 363
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
Thank you for your help
Unfortunately, that did not work either
__________________
Aquarium Life Live stock ID database

MadCaptain's Aquarium The only filter that remove Nitrates, Phosphate and Reduce Fish Lost! Learn how to cycle your fish tank in 24h!!!
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2009, 09:51 PM   #4 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,275
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
If you have things sorted in folders, then it could be a path problem relative to where the CSS file is in relationship to where the image is.
__________________
HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners

Trouble getting indexed? Maybe it's something techincal - Pm me.

Last edited by htmlbasictutor; 03-29-2009 at 10:02 PM..
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2009, 10:10 PM   #5 (permalink)
v7n Mentor
 
Join Date: 05-17-08
Location: Morgan Hill, California
Posts: 516
iTrader: 0 / 0%
Latest Blog:
None

Bob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web proBob Barr is a highly respected web pro
Quote:
Originally Posted by htmlbasictutor View Post
If you have things sorted in folders, then it could be a path problem relative to where the CSS file is in relationship to where the image is.
Also, depending on whether the css is inline or in an external file, the path to the image will need to be specified either relative to the location of the HTML file (if it's inline css) or relative to the location of the external css file. (I've been burned by that one a time or two.)
Bob Barr is online now  
Add Post to del.icio.us
Reply With Quote
Old 03-30-2009, 05:45 AM   #6 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 363
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
Quote:
Originally Posted by htmlbasictutor View Post
If you have things sorted in folders, then it could be a path problem relative to where the CSS file is in relationship to where the image is.
That was it! Thank you!!!
__________________
Aquarium Life Live stock ID database

MadCaptain's Aquarium The only filter that remove Nitrates, Phosphate and Reduce Fish Lost! Learn how to cycle your fish tank in 24h!!!
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-29-2009, 09:56 PM   #7 (permalink)
Junior Member
 
Join Date: 03-29-09
Posts: 11
iTrader: 0 / 0%
Latest Blog:
None

mr12ka4 is liked by many
nice posting .............

nice posting .............
mr12ka4 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting background image cmg433 Coding Forum 6 07-18-2008 07:33 PM
CSS Background Image Problem Boogle Web Design Lobby 8 09-05-2007 05:44 AM
CSS background image IE paranoidandroid Coding Forum 3 06-04-2006 01:28 PM
Still Background Image TheGunslinger Web Design Lobby 3 08-09-2005 08:00 PM
Table Background Image Jazzee Coding Forum 5 11-16-2003 09:05 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:43 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.