Hi, I am trying to add an image border (full length that doesn’t leave any gaps to the right or left sides) to the bottom of the .headerclass or to the top of the div.wrap.contentclass and another border to the bottom of div.wrap.contentclass or to the top of #containerfooter. I have attempted it but it is not working. I added the border to the top and bottom of div.wrap.contentclass but it is not positioning right to the edge of content background on the top and it doesn’t expand full to the left and right. You can see it on my site.
As far as I can tell, the image is going right up to the edge at top, but the image itself is not 50px. The height of the image is 67px, and the height of the decorative ribbon is only 27px, so you get a 40px gap there.
You don’t see that gap at the bottom because the decorative ribbon is at the bottom of the image.
Using images on borders is not uncommon. However the border-image property is new CSS and is not compatible with older browsers. The background-image property, as mentioned by @RyanReese, is the most universal method of implementing background images, including images around the border at this time.
Any time you use bleeding edge code, you must expect limited browser compatibility. You can check out browser compatibility here: http://caniuse.com/
You’re welcome! Glad you solved the problem. What made me it easy for me to see the problem was Chrome’s built-in developer tools. You right click on a website, and select “Inspect Element” from the pop-up menu. Then you get to see exactly what properties and values are actually applied.
I’m pretty sure other browsers have something similar, if not built-in, then as a plugin. Highly recommended to avoid tearing your hair out!