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.
|
|
|
|
|
![]() |
||
div bg
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Re: div bg
Okay, first; I have NO idea what I'm doing in CSS (lolol).
However, could this be your problem?
|
|
#3
|
|||
|
|||
|
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
|
|
#4
|
||||
|
||||
|
Re: div bg
I get a 404
|
|
#5
|
|||
|
|||
|
Re: div bg
Well if sorted it out now people, tell me what you think of the new look
www.obscureinspiration.co.uk |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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. |
![]() |
| Tags |
| div |
| Thread Tools | |
|
|