Post by Katara~* on Jan 15, 2016 9:29:19 GMT -8
Hello!
I've been using this CSS code in my forum to add head/base/side images to the categories.
/* Start of head/base/side images code - Do not delete rows unless you know how LESS variables work.
For the image urls, replace the| @empty; |text with| url("http://example.com/image.png");
For the heights, replace| 0; |with the appropriate dimension and unit, example| 500px;
Do the same for the side margin; this is how much space on each side should be left to show the side image.
If the width seems incorrect, check for any plugins (such as sidebars) that are redefining the forum or wrapper width and try that value.
The code expects that the forum/wrapper width is the same as the width of the head/base images.
*/
@container_head_image_url: url("http://i39.tinypic.com/2ns5ogz.jpg");
@container_side_image_url: url("http://i39.tinypic.com/9i8nzp.jpg");
@container_base_image_url: url("http://i41.tinypic.com/mhekk4.png");
@container_head_image_height: 22px;
@container_base_image_height: 22px;
@container_side_image_margin: 22px;
/* Do not edit past here if you aren't sure how. */
html.multiplebgs .container.boards, html.multiplebgs .container.stats {
background-image: @container_head_image_url, @container_base_image_url, @container_side_image_url;
background-position: left top, left bottom, left @container_head_image_height;
background-repeat: repeat-x, repeat-x, repeat-y;
padding: @container_head_image_height 0 @container_base_image_height;
}
html.multiplebgs .container.boards > div, html.multiplebgs .container.stats > div {
margin: 0 @container_side_image_margin;
}
/* END of head/base/side image code */
FORUM URL: upccc.proboards.com/
The only problem I have is that the side image repeats into the head/base images. My head/base images have rounded corners, so you can see the side image behind them.
Does anyone have an idea to fix this?
Thank you!
I've been using this CSS code in my forum to add head/base/side images to the categories.
/* Start of head/base/side images code - Do not delete rows unless you know how LESS variables work.
For the image urls, replace the| @empty; |text with| url("http://example.com/image.png");
For the heights, replace| 0; |with the appropriate dimension and unit, example| 500px;
Do the same for the side margin; this is how much space on each side should be left to show the side image.
If the width seems incorrect, check for any plugins (such as sidebars) that are redefining the forum or wrapper width and try that value.
The code expects that the forum/wrapper width is the same as the width of the head/base images.
*/
@container_head_image_url: url("http://i39.tinypic.com/2ns5ogz.jpg");
@container_side_image_url: url("http://i39.tinypic.com/9i8nzp.jpg");
@container_base_image_url: url("http://i41.tinypic.com/mhekk4.png");
@container_head_image_height: 22px;
@container_base_image_height: 22px;
@container_side_image_margin: 22px;
/* Do not edit past here if you aren't sure how. */
html.multiplebgs .container.boards, html.multiplebgs .container.stats {
background-image: @container_head_image_url, @container_base_image_url, @container_side_image_url;
background-position: left top, left bottom, left @container_head_image_height;
background-repeat: repeat-x, repeat-x, repeat-y;
padding: @container_head_image_height 0 @container_base_image_height;
}
html.multiplebgs .container.boards > div, html.multiplebgs .container.stats > div {
margin: 0 @container_side_image_margin;
}
/* END of head/base/side image code */
FORUM URL: upccc.proboards.com/
The only problem I have is that the side image repeats into the head/base images. My head/base images have rounded corners, so you can see the side image behind them.
Does anyone have an idea to fix this?
Thank you!