2011-12-01, 09:06 AM
2011-12-01, 09:25 AM
You can do that with images or using the CSS shadow properties.
2011-12-01, 06:32 PM
MyBB.com does it using a couple of PNG images (one for sides and one for bottom) and a fixed-width container. This is the easiest cross-browser-compatible way to do it, but box-shadow (and browser-specific friends) on the container is the best (and a bit easier too) if you only care about the latest browsers (even IE9 supports it).
2011-12-01, 06:49 PM
div#shadow {
position: relative;
background: url(http://mybb.com/assets/images/shadow.png) top left repeat-y;
width: 980px;
margin: auto auto;
height: auto;
}
position: relative;
background: url(http://mybb.com/assets/images/shadow.png) top left repeat-y;
width: 980px;
margin: auto auto;
height: auto;
}
2011-12-01, 10:15 PM
Thanks guys! So one method is by code, the other method is a picture that's just slightly bigger than the main frame?