r/csshelp • • Nov 04 '13

Resolved Help with image bar positioning concerning sidebar image, searchbar and submit buttons. On /r/Protestantism.

On /r/Protestantism I would like to know how to put the search bar and submit buttons over the image I have that changes weekly. I would like it to be like /r/conservative with the positioning.

6 Upvotes

10 comments sorted by

1

u/PizzaRollExpert Nov 05 '13

try replacing div.side div.spacer:nth-of-type(1) with .titlebox

1

u/[deleted] Nov 05 '13

wow thanks but I just realized I just want the searchbar over the image not the submit buttons. I think it would look smoother that way.

1

u/PizzaRollExpert Nov 05 '13 edited Nov 05 '13

change the selector to #search, padding-top to padding-bottom and background: [...] top [...] to background: [...] bottom [...]

You should check out the inspect element tutorial linked in the sidebar.

1

u/[deleted] Nov 05 '13

I am not sure where to put these things. This is my code for my image and caption.

.titlebox{ padding-top: 350px; background:url(%%john-calvin-264x300%%) top center no-repeat; margin-top:15px; } /Optional- adds a caption under that image/ .titlebox:before{ display:block; border: 1px solid black; box-shadow: black 0 0 6px; margin-top:-50px; margin-left:18px; margin-bottom:15px; width:262px; content:"Our prayer must not be self-centered. It must arise not only because we feel our own need as a burden we must lay upon God, but also because we are so bound up in love for our fellow men that we feel their need as acutely as our own. To make intercession for men is the most powerful and practical way in which we can express our love for them.-John Calvin"; padding:0px 0 8px; text-align:center; font-family: arial,helvetica,sans-serif; font-size: 12pt;

1

u/PizzaRollExpert Nov 05 '13

I had to change some things to make it work.

Replace everything in your quote with this:

#search:after {
    padding-top: 300px;
    background:url(http://b.thumbs.redditmedia.com/9hDi1fXIPQa-946y.jpg) top center no-repeat;
    display:block;
    border: 1px solid black;
    box-shadow: black 0 0 6px;
    margin-top:10px;
    margin-left:18px;
    margin-bottom:15px;
    width:262px;
    content:"Our prayer must not be self-centered. It must arise not only because we feel our own need as a burden we must lay upon God, but also because we are so bound up in love for our fellow men that we feel their need as acutely as our own. To make intercession for men is the most powerful and practical way in which we can express our love for them.-John Calvin";
    text-align:center;
    font-family: arial,helvetica,sans-serif
}

1

u/[deleted] Nov 05 '13

That intefered with my header image somehow.

1

u/PizzaRollExpert Nov 05 '13

Does it work like it should now?

1

u/[deleted] Nov 05 '13

can you make the font 12 pt?

1

u/PizzaRollExpert Nov 05 '13

Done!

1

u/[deleted] Nov 05 '13

Thanks. Bless you.