• Resolved webadeptuk

    (@webadeptuk)


    I’ve decreased the size of the main body so it doesn’t stretch to fit the whole screen but how do I change the background around the main body?

    Thanks

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter webadeptuk

    (@webadeptuk)

    PERFECT!!

    Thank you 🙂

    Here it is in Black:

    body {
    background: none repeat scroll 0 0 black; /* Change black */
    color:              #5A5A5A;              /* Default Text Color */
    padding-bottom:     0px;
    }
    #main-wrapper {
    margin-top:         0px ;
    margin-bottom:      0px ;
    background-color:   black ;               /* Change black */
    border:             2px solid #9DB668 ;   /* Delete if no border needed */
    padding:            0 10px 0 20px ;
    }
    
    .container[role="main"] {
    background-color:   black ;               /* black */
    }
    
    .navbar-wrapper, footer#footer .colophon, header.tc-header  {
    background-color:   black;                /* black */
    }
    
    .round-div {
    border:             104px solid black;    /* black   */
    }
    
    .carousel {
    background-color:   black;
    margin-bottom:      0px;
    }

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @rdellconsulting, your CSS commenting standards are really good. Are you just doing this for a demonstrative purpose on this forum, or do you code like this in general?

    Oh Andrew, how could you doubt me 😉

    At the moment, most of my time is spent building the library of Snippets and they need to have sufficient comments to help people.

    But I do actually try to comment all my work like this. I started as a Programmer many moons ago (do you remember COBOL haha), so had it drilled into me.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Interesting 🙂

    @web

    I looked at your site on my iPhone 5 to see how the above changes worked and looked and noticed your featured images are off center. Just wanted to let you know. Great looking site.

    Thread Starter webadeptuk

    (@webadeptuk)

    @dfwmax Thanks 🙂

    I would like to make a similar change on my site (prettyhungryblog.com) but in my case I would like the post body and sidebar to be white and the margins/background to be light gray. Could you tell me what code to insert?

    Thanks!

    People! Please post your own topics!

    Start a new Topic @carissawp as this one is already [resolved]

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Background colour around body’ is closed to new replies.