Container color?
jasonarney
Registered Users Posts: 6 Big grins
I can barely code my way out of hello world, so CSS is pretty beyond me... but I'm hoping to get my site near where I see it in my mind.
First, is there anyway to have the background slide show margined? I'd like to set the header to 100% white and have the slide show start below it, then allow the header to be pinned once the user begins to scroll.
Second, can I add background color and opacity to container objects? For example, if I could set 50% white to the news or photo containers, it would make the text within readable regardless of the background image.
www.jasonarney.com is where I'm at now.
First, is there anyway to have the background slide show margined? I'd like to set the header to 100% white and have the slide show start below it, then allow the header to be pinned once the user begins to scroll.
Second, can I add background color and opacity to container objects? For example, if I could set 50% white to the news or photo containers, it would make the text within readable regardless of the background image.
www.jasonarney.com is where I'm at now.
0
Comments
I love your transparent background for the header!
I see you got the scrolling/pinned header set.
I personally love the transparent header, though, more than the pinning.
For the background color, the code is going to be specific or different for the type of content block. I have no idea about photos - I think it depends on where and type: a single photo content block versus all the photos in a gallery (different rules/possibilities for different gallery types).
For text only content blocks, I can't remember - you can either specify it in the CSS of the page, or limit it to one single text block on a page (element?). "Real" code folk will know.
For HTML content blocks, here's code that works for me:
or .sm-page-widget-1516504 for a specific box. Each box/widget has a unique class
name with the numbers.
Using "Inspect Element" this is in the
class="sm-page-widget sm-page-widget-html sm-page-widget-1516504"
My Website index | My Blog
?
I'm 100% sure I'm missing a ton.
Fiddled as best I could and only got dumber.
Close:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Indeed that was the trick.
If I may ask further... I want to have those boxes feature the same opacity as the header, just a hint of something below. I poked around and found I could... But this makes everything in the container 80% and thus, the photos go to poo in their presentation.
And add this instead:
You can adjust the opacity using the '0.8' setting.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Awesome! Thanks for your time.