1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need to change background color on specific page (CSS)

Discussion in 'Web Design' started by SquirlyNutz, Jan 18, 2014.

  1. SquirlyNutz

    SquirlyNutz Power Member

    Joined:
    Feb 20, 2009
    Messages:
    671
    Likes Received:
    495
    Location:
    Toronto
    I am trying to change the background color on a specific page with CSS and not having any luck.

    The background color on the main site is fine although i have 2-3 pages that i need to change to gradient background.
     
  2. tweakcoder

    tweakcoder Regular Member

    Joined:
    Apr 8, 2012
    Messages:
    238
    Likes Received:
    184
    Occupation:
    PHP Web Developer
    Location:
    India
    PM me

    The message you have entered is too short. Please lengthen your message to at least 15 characters
     
  3. Henrik8000

    Henrik8000 Registered Member

    Joined:
    Apr 14, 2013
    Messages:
    86
    Likes Received:
    19
    Occupation:
    Web-delveloper
    Location:
    Thailand
    wordpress, HTML what kind of site is it?
     
  4. SquirlyNutz

    SquirlyNutz Power Member

    Joined:
    Feb 20, 2009
    Messages:
    671
    Likes Received:
    495
    Location:
    Toronto
    The site is Html, CSS.
     
  5. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,364
    Likes Received:
    5,425
    Gender:
    Male
    Location:
    South Africa
    Home Page:
  6. cssbros

    cssbros Newbie

    Joined:
    Oct 17, 2012
    Messages:
    38
    Likes Received:
    3
    Occupation:
    Web Designer/Developer
    Location:
    Philippines
    Home Page:
    You can specify a class name for each pages that you wanna have a different color.
    Then just create a style using css for it.

    Goodluck!
     
  7. kawitaraj

    kawitaraj BANNED BANNED

    Joined:
    Dec 21, 2013
    Messages:
    239
    Likes Received:
    15
    define different class for each page and apply css you want have a great time
     
  8. jeanlance

    jeanlance Power Member

    Joined:
    Mar 5, 2009
    Messages:
    798
    Likes Received:
    109
    Occupation:
    Web Designer, VCC supplier
    Location:
    Some where between heaven and hell
    Home Page:
    Hey mate add me up on skype : floralchamp

    I would be happy to help you out with he changes

    Regards
    Neo
     
  9. trustar14

    trustar14 BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    224
    Likes Received:
    27
    I will help you send me PM
     
  10. themubeen

    themubeen Junior Member

    Joined:
    Feb 13, 2011
    Messages:
    121
    Likes Received:
    15
    you can assign class to body tag then change background of that class like
    body.about-us{background:#333;}
     
  11. cssbros

    cssbros Newbie

    Joined:
    Oct 17, 2012
    Messages:
    38
    Likes Received:
    3
    Occupation:
    Web Designer/Developer
    Location:
    Philippines
    Home Page:
    You can either assign body class, or create page template, then specify the bg color on css. Hope that helps.