Content Block Backgrounds
Jkatzphoto
Registered Users Posts: 15 Big grins
Hello Smugmuggers,
I have an HTML/CSS question that I have been unable to resolve:
I want to create independent backgrounds for specific HTML content blocks within a page. Every time I try and change the background within the HTML block, it changes the background for the entire page, which is not what I want. For example, when I add a HTML content block, I want to have that content block have a white background that is independent of the main page background. I know this is doable because I have seen this feature on other Smugmug themes, but I can't figure out how to do it myself.
For reference, see:
http://www.tomfosterphotos.com/
Anyone who can show me how to do this (with the CSS code) will rate super awesome, I would really appreciate it.
I have an HTML/CSS question that I have been unable to resolve:
I want to create independent backgrounds for specific HTML content blocks within a page. Every time I try and change the background within the HTML block, it changes the background for the entire page, which is not what I want. For example, when I add a HTML content block, I want to have that content block have a white background that is independent of the main page background. I know this is doable because I have seen this feature on other Smugmug themes, but I can't figure out how to do it myself.
For reference, see:
http://www.tomfosterphotos.com/
Anyone who can show me how to do this (with the CSS code) will rate super awesome, I would really appreciate it.
Check out my portfolio of landscape photography and my personal favorite shots.
I am also the cofounder of Travelstoked, an adventure photography blog.
I am also the cofounder of Travelstoked, an adventure photography blog.
0
Comments
using "Inspect Element" in the right click popup menu using Firefox. For any widget R/C on or around it and
the html line will highlight in a popup box. Then look up about 4 or 6 lines and find the class name.
<div id="sm-page-widget-M6SBrdSx" class="sm-page-widget sm-page-widget-slideshow sm-page-widget-9608205" data-typeid="9608205">
.sm-page-widget-9608205 {background: red}
Example: Guessbook photo widget. Yellow is what highlighted and red is widget class name.
My Website index | My Blog
Add a comment for each one so you know where they are used.
/* guessbook photo box */
.sm-page-widget-9476944 ...
/* homepage slideshow box */
.sm-page-widget-9608205 ...
I do not use the theme CSS because some day I might change themes.
My Website index | My Blog
Thanks a lot for your input. I was able to code what I wanted into my pages. Really appreciate your help.
I am also the cofounder of Travelstoked, an adventure photography blog.