Border around group of content blocks?
Teetime
Registered Users Posts: 202 Major grins
I have an HTML content block with some text followed by three video content blocks. I would like to surround all of these with a single border, and set a background color for the area bounded by the border. I would also like to reuse this same scheme in several places in my site. Is this possible? If so, how would you approach it in SM?
Thanks,
Jerry
Thanks,
Jerry
Jerry
0
Comments
Might have to play with box widths to get equal widths.
For CSS set border then use border-width for what sides to show.
/* top box */
.sm-page-widget-XXXXXX {
border: 2px solid #fff;
border-width: 2px 2px 0 2px; /* top R bottom L */
background: #666:
}
/* middle box */
.sm-page-widget-XXXXXX {
border: 2px solid #fff;
border-width:0 2px 0 2px; /* top R bottom L */
background: #666:
}
/* middle box */
.sm-page-widget-XXXXXX {
border: 2px solid #fff;
border-width: 0 2px 0 2px; /* top R bottom L */
background: #666:
}
/* bottom box */
.sm-page-widget-XXXXXX {
border: 2px solid #fff;
border-width: 0 2px 2px 2px; /* top R bottom L */
background: #666:
}
Example: HTML box on top of folder box
http://www.photosbyat.com/Birds
My Website index | My Blog
Thanks,
Jerry
I would suggest use the page ID added to this so it doesn't affect whole site.
Look in the <body> for the ID.
.sm-page-node-XXXXX .sm-page-layout-region-center .sm-page-layout-region-body {
border: 4px double #fff;
background: #ccc;
padding: 0 5px; /* top/botton R/L */
}
My Website index | My Blog