Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD xHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/dtd/xhtml1-strict.dtd">
<html lang="en">
<head>
<title>Framing Images</title>
<style type="text/css">
<!--
.frame {
width: 532px;
height: 365px;
background: url(images/bottom-left.png) no-repeat left bottom;
}
.frame-outer {
background: url(images/bottom-right.png) no-repeat right bottom;
}
.frame-inner {
background: url(images/top-left.png) no-repeat left top;
}
.frame img {
background: url(images/top-right.png) no-repeat right top;
padding: 16px 16px 13px 16px;
}
-->
</style>
</head>
<body>
<div class="frame">
<div class="frame-outer">
<div class="frame-inner">
<img src="images/image.jpg" width="500" height="331" />
</div>
</div>
</div>
</body>
</html>
My goal would be not to have to put the size of the image in either place, and have it size automatically to the image.
Thanks!
So, if you have a degraded version without the graphical borders for the older browsers you could try that avenue.
CSS3 border-image:
[w3.org...]
An example for safari:
[webmasterworld.com...]
Firefox 3.1 is getting similar support (with "-moz-border-image"). Not ethat FF3.1 is still in beta release only.