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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 27th, 2006, 18: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 18:18.
Reply With Quote

  #2 (permalink)  
Old Jun 27th, 2006, 18: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.
Reply With Quote
  #3 (permalink)  
Old Jun 27th, 2006, 18: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
Reply With Quote
  #4 (permalink)  
Old Jun 27th, 2006, 20:01
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: div bg

I get a 404
Reply With Quote
  #5 (permalink)  
Old Jun 27th, 2006, 20: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
Reply With Quote
  #6 (permalink)  
Old Jun 27th, 2006, 20:50
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,737
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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 12:44.
Reply With Quote
  #7 (permalink)  
Old Jun 27th, 2006, 23: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.
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 19:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43