Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old May 9th, 2007, 06:51 AM   #1
New Member
 

Join Date: May 2007
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 1databyte is on a distinguished road
Question External background image not showing

As a new member to the forum I would first of all like to say a big hello to everyone in the forum and to all its members

i am currently trying to develop a simple website just using basic HTML(XHTML) with a simple text editor, although i have done some web design/development before it has been a while and i am very rusty.
At the moment i am having a problem with cascading style sheets (CSS). When i link my web page to a background image in an external folder containing the CSS, the image fails to appear. All the other
CSS styling works relatively fine but as soon as i want to use an image from the external CSS folder, it does not work.

However when i cut and paste the code from external css file and place directly in a td tag element it works fine. can anybody tell me what i am doing wrong. i have placed a sample of the code below

" <td style = "background-image:url(image/bgBrownSlice.jpg);background-repeat:repeat-x"
width = "250px" height= "400px">Right Cell </td> "

many thanks, 1databyte
1databyte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2007, 07:22 AM   #2
Elite Veteran
 

Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
Re: External background image not showing

Code:
.tdstyle {
background:  url(image/bgBrownSlice.jpg) repeat;
width: 250px;
height: 400px;
}
This would be the correct css. Although I do not know how to assign css to tables cells.

When I used tables, I would use something like background="image/bgBrownSlice.jpg"

Did I make this more confusing?
Lchad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2007, 09:14 AM   #3
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: External background image not showing

You might have to look at the path of your image? You might have to do something like /image/ instead of just image/

Code:
.tdstyle {
background:  url(/image/bgBrownSlice.jpg) repeat;
width: 250px;
height: 400px;
}
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2007, 11:12 AM   #4
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: External background image not showing

or ../image/foo.jpg depending. Check the path.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 14th, 2007, 05:34 AM   #5
New Member
 

Join Date: May 2007
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 1databyte is on a distinguished road
Re: External background image not showing

A quick apology and thank you to members LChad,Karinne,Moojoo for responding to my posting. Sorry that i have taken so long to follow up
(was distracted by private issues) your suggestions have been very helpful, but are things that i tried out already. I have checked the file path, i tried placing "/image", "~/image", "folder/image" and Moojoo even that girly thing you spoke about the 2 periods from MSDOS "../image" nothing worked!! At the moment i have given up on trying to solve that problem and i just use both in-line CSS and external link togther. Makes my code a bit messy by i have no other option
again big thank you to every one

thanks, 1databyte
1databyte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 14th, 2007, 05:54 AM   #6
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: External background image not showing

Can you give us a link?
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 15th, 2007, 11:59 AM   #7
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: External background image not showing

../ represents the root level of your server so it could be ../images/foo.jpg or ../../images/foo.jpg etc etc depending.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 15th, 2007, 11:36 PM   #8
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: External background image not showing

And the parent directory dots aren't "girly!" They're dead useful
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 16th, 2007, 07:07 AM   #9
New Member
 

Join Date: May 2007
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 1databyte is on a distinguished road
Wink Re: External background image not showing

hi Ryan and Moojoo, thanks for replying unfortunately i do not have an available link to the website i am working on. It exists as code on my machine in an IDE software environment. At the moment i have moved on to some other pressing things and will return to this problem at a later date. Again a big thanks to you both and whoever said that "../ " was girly? (a big smile)

cheers, 1databyte
1databyte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 16th, 2007, 03:58 PM   #10
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: External background image not showing

It's not girly, its web 2.0! <-- heh
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 17th, 2007, 11:52 PM   #11
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: External background image not showing

Lol, moojoo.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 20th, 2007, 03:03 PM   #12
Reputable Member
 

Join Date: Dec 2005
Location: Texas
Age: 20
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 daygon is on a distinguished road
Re: External background image not showing

wise guys theses days
daygon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 21st, 2007, 08:10 AM   #13
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: External background image not showing

I suggest trying to get it up on the internet before troubleshooting problems. It'll save you a lot of time!
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
repeat x , style sheets


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
[SOLVED] Background image not showing Aso HTML, XHTML and CSS 1 April 22nd, 2008 11:54 AM
Background page not showing up aaronh HTML, XHTML and CSS 4 April 30th, 2007 03:30 PM
Background image overlaping footer image at bottom of div lw_d HTML, XHTML and CSS 4 March 20th, 2006 08:27 PM
background image not showing up in Firefox but showing in other browsers! eskymo HTML, XHTML and CSS 21 January 19th, 2006 07:10 PM
local image not showing kanuski HTML, XHTML and CSS 1 October 16th, 2005 04:11 AM


Search Engine Optimization by vBSEO 3.2.0 RC8