Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

div bg

This is a discussion on "div bg" within the Web Page Design section. This forum, and the thread "div bg are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 27th, 2006, 19:10
Junior Member
Join Date: Jun 2006
Location: n/a
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Angry div bg

Hey guys, ive just started to create a site. The only problem is, i want one of my divs to have a bg but for some strange reason it isnt working.

I want the bg to appear on this page

http://www.obscureinspiration.co.uk/indextest.htm

like it does on this

http://www.obscureinspiration.co.uk/

heres my css code

http://www.obscureinspiration.co.uk/style.css

Thanks to anybody who helps

NOTE: the bg in the div works in the dreamweaver design view, but not in a browser

Last edited by obscureinspiration; Jun 27th, 2006 at 19:18.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jun 27th, 2006, 19:50
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div bg

Okay, first; I have NO idea what I'm doing in CSS (lolol).

However, could this be your problem?
Code: Select all
 background: url('file:///C|/Documents%20and%20Settings/Danny%20g/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/img/lefthead.gif') no-repeat top left;
Seems to have an address leading back to your own hard drive which will display in DreamWeaver coz it has access to it, but your browser will be looking for a url address in your web space to download the page and content from.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 27th, 2006, 19:56
Junior Member
Join Date: Jun 2006
Location: n/a
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div bg

No sorry, it's not anything to do with that because that isnt the file im trying to access, the file is in the #main part of the .css file and it just doesnt seem to wanna work. In the html it's <div class="main"> part
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 27th, 2006, 21:01
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 22
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div bg

I get a 404
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 27th, 2006, 21:03
Junior Member
Join Date: Jun 2006
Location: n/a
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div bg

Well if sorted it out now people, tell me what you think of the new look

www.obscureinspiration.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 27th, 2006, 21:50
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: div bg

Best method:

background: #color url(../images/foo.jpg) top/center right/left repeat-x/y etc..) Additionally you can use px values to place the image too. e.g. for say a single image rollover effect.

#foo a {
background: #color url(../images/foo.jpg) 0px 0px no-repeat)
}

#foo a:hover {
background: #color url(../images/foo.jpg) 0px -50px no-repeat)
}
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Jun 28th, 2006 at 13:44.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 28th, 2006, 00:26
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div bg

Good news.
What was up with it?

There's a 404 on the homepage button as you've linked it to http://www.obscureinspiration.co.uk/index/index.htm.
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

Tags
div

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


All times are GMT. The time now is 16:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8