vForums Support > Programming & Coding :: Programming Discussion :: > Smal CSS problem

Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 1:16am
On my site The Directory, There is a slight CSS problem, Dwight had it working then all of a sudden it stopped working, and he cant fix it .

Code:
 
  1. .borderhead {
  2. overflow: hidden;
  3. margin-top: 10px !important;
  4. background-image: url('../images/top.png')
  5. height: 25px;
  6. width: 756px;
  7. }
  8.  
  9. .bordercenter {
  10. background-image: url('../images/middle.png')
  11. background-repeat: repeat-y;
  12. background-position: top center;
  13. }
  14.  
  15. .borderfoot {
  16. overflow: hidden;
  17. margin-bottom: 5px !important;
  18. background-image: url('../images/bottom.png')
  19. height : 25px;
  20. width: 756px;
  21.  
 


everything looks fine, but it still does not show up on any of the pages.

http://www.thedirectory.2x.nu/index.php

http://www.thedirectory.2x.nu/css/style.css

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 1:18am
Would help if you told us what the problem was, site looks fine to me! {Unsure}

Re: Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 1:26am
Whoops. >_< The borders do not show up around the table.

The borders are

http://www.thedirectory.2x.nu/images/top.png
http://www.thedirectory.2x.nu/images/middle.png
http://www.thedirectory.2x.nu/images/bottom.png

Re: Smal CSS problem - Posted By dog199200 (dog199200) on 13th Jan 10 at 2:59am
yea and it should work {Unsure} I tried adding a border around everything. It was showing up and then it all just stopped showing up without having edited anything. I revised the code and yet nothing is wrong. The CSS should be right, and so should the div calling the classes to place the border.

Re: Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 3:04am
It stopped working after you took out that one image I told you to take out. I'm 45% sure it's that.

http://i185.photobucket.com/albums/x20/magedesigns/directory/gradbar.png

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 3:12am
Where is each image meant to be?

Re: Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 3:28am
well the top middle bottom is supposed to be like this http://thedirectory.vforums.co.uk

Re: Smal CSS problem - Posted By dog199200 (dog199200) on 13th Jan 10 at 3:34am
no cause it worked for a little bit after i removed the table class like you told me too {Unsure} and i know its not a class problem cause i went though and made sure i removed all the table classes afterwards

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 3:38am
I honestly don't see what it's meant to look like! O.o

Re: Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 3:38am
Ahh ok, I see. I'm stumped with this one too, as all the CSS looks right. >_>

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 3:39am
The whole site is displaying how you've coded it to. Except I think you might have made a mistake in that you've referenced the 3 aforementioned parts as 'ID', but in the CSS they're a 'class'.

Chance one or the other! {Smile}

Re: Smal CSS problem - Posted By dog199200 (dog199200) on 13th Jan 10 at 3:53am
i cant tell you know it still doesn't help any, I was trying both class and id to get it to work and forgot to change it back to class. I changed it back now, but as you can see it still doesn't work.



Edit: as for what is suppose to look like, its suppose to add a frame around the site, and even when it was working before it wasn't working exactly right it was putting it behind the table and not around it, which didn't look to bad.

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 3:59am
Your CSS has a missing semi-colon on the end of the background-image lines, meaning that it's not registering! {Smile}

Re: Smal CSS problem - Posted By dog199200 (dog199200) on 13th Jan 10 at 4:04am
i can't believe i actually forgot that...

Re: Smal CSS problem - Posted By Nick (nickb) on 13th Jan 10 at 4:05am
and that fixed it! {Cheesy}


But not aligned correctly. {Tongue Out}

Re: Smal CSS problem - Posted By Michael (wrighty) on 13th Jan 10 at 4:08am
You have to add:
margin: 0 auto;
{Smile}

Re: Smal CSS problem - Posted By dog199200 (dog199200) on 13th Jan 10 at 4:12am
{Tongue Out} working on that