r/csshelp • • May 10 '15

Would like the basic code for the banner/header on a subreddit

working on a new subreddit /r/churchofdarkness (a new pokemon religion I guess). Wrote in C++ a while back (~2 years ago) but forgot how to do it pretty much completely. Was wondering what the basic code for a banner/header looks like?

Thank you!

6 Upvotes

4 comments sorted by

3

u/FaultLiner May 10 '15

From CssHelp wiki:

/*Banner*/
#header {background:Gray url(%%Banner%%)repeat scroll center left;border:none;height:200px}
/*Change the height above to the height of your banner*/
#sr-header-area {
    background-color: #fff;
    opacity: 1;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 90%;
    height: 18px;
    line-height: 18px;
    z-index: 999;
}
#sr-header-area a.choice {
    opacity: 1.0;
    z-index: 999;
}
#sr-header-area a.choice:hover { 
    text-decoration: underline;
}
.tabmenu {
    position:absolute;
    bottom:0px;
}
#header-bottom-left {
    position:absolute;
    bottom:0px;
}
#header {
    background-color: #c6daed;   
    border: 0px  #000000 solid ;
}
#header-img {
    margin-top: 2px;
    margin-right: 5px;
    margin-left:10px;
}

This is for uploading an image that acts as a pattern. It should be uploaded to your stylesheet under the name "Banner".

Let me know if you have any questions.

1

u/goddammitgary May 10 '15

Thank you so much. I'm trying to get back into CSS programming, but it's been very difficult so far. Just so I have it straight, under your /Banner/ is the background everyone will see when they scroll down your page? Or is it like the water mark?

4

u/FaultLiner May 10 '15

It is the background users will see at the top of the page. The "scroll" is the default value for backgrounds, it scrolls with the element it is in.

Do you know about CodeCademy? They offer free online programming courses, it helped me a lot, ~4 months ago I knew almost nothing about css.

1

u/goddammitgary May 10 '15

I'm going to check that out for sure! Thanks for all the help man!