Changing background colour in phpBB:

Discussion in 'CSS' started by Dave Hybrid, Dec 2, 2006.

  1. #1
    Hey,

    I want to change the colour of the background on my forum.

    www.thecomputerforums.co.uk

    The background that surrounds the main board.

    I have edited the .css file but nothing seem to make a difference.

    Can someone please point me in the right direction...

    Thanks

    Dave.
     
    Dave Hybrid, Dec 2, 2006 IP
  2. jumpenjuhosaphat

    jumpenjuhosaphat Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What color are you trying to change it to? Is the CSS now the way you think it should make your background color change?
     
    jumpenjuhosaphat, Dec 3, 2006 IP
  3. gastongr

    gastongr Well-Known Member

    Messages:
    421
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    108
    #3
    The background is actually an image: http://www.thecomputerforums.co.uk/templates/softmetal/images/bgsoftmetal.jpg

    You will need to edit the html, not the css.
    Find
    <td background="templates/softmetal/images/bgsoftmetal.jpg">
    Code (markup):
    in the header template and replace
    templates/softmetal/images/bgsoftmetal.jpg
    Code (markup):
    for the path of the image you want to set as background.

    I hope that helps
     
    gastongr, Dec 3, 2006 IP
  4. Dave Hybrid

    Dave Hybrid Active Member

    Messages:
    997
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    83
    #4
    Thank you so much, rep added! :)
     
    Dave Hybrid, Dec 4, 2006 IP
  5. Dave Hybrid

    Dave Hybrid Active Member

    Messages:
    997
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    83
    #5
    On messing around the above allows me to add a border around the main forums/board but doesn't allow me to change the the main white space.

    Any other Ideas?

    Thanks.
     
    Dave Hybrid, Dec 4, 2006 IP
  6. gastongr

    gastongr Well-Known Member

    Messages:
    421
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    108
    #6
    Find
    
    body {
    	background-color: #ffffff;
    
    }
    
    Code (markup):
    in the file templates/softmetal/softmetal.css and replace "#ffffff" with the code of the color you want.

    This will change the background i marked in the attached picture.
    Thanks for the rep :)
     

    Attached Files:

    • bg.jpg
      bg.jpg
      File size:
      52.1 KB
      Views:
      103
    gastongr, Dec 4, 2006 IP
  7. Dave Hybrid

    Dave Hybrid Active Member

    Messages:
    997
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    83
    #7
    You would think that would sort it wouldn't you... but it doesn't.

    Have tried changing most things, nothing seems to work.

    Will probably stick with it as it is, upgrading to vBulletin soon anyway.

    Thanks all the same.

    Dave.
     
    Dave Hybrid, Dec 5, 2006 IP