Zygoma, Try this and see if it works for you.
FYI: Indenting code is a helpful way to keep track of the structure as the page is being built. Better than obscure/misplaced comments.
Code:
<!doctype html>
<html>
<!--
http://www.sitepoint.com/forums/showthread.php?959153-Cant-get-background-image-to-dispaly-how-i-d-like-%28
Thread: Cant get background image to dispaly how i'd like :-(
2013.01.21 09:06
Zygoma
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/sale-logo_zps87f351ae.jpg ("sale" image)
-->
<head>
<title>Curvy-1d</title>
<link rel="stylesheet" href="curvy.css" />
</head>
<body>
<div id="wrapper">
<div class="saleleft"></div>
<div class="saleright"></div>
<div id="header">
<h1>Curvy Corners</h1>
<p>"Turn Hazardous Workplace Corners Soft"</p>
</div>
<div id="content-wrap">
<div id="column1">
<h2>Welcome</h2>
<p>Featured on BBC's Dragons Den our easy to apply quick fix bumpers can tame any sharp corner soft</p>
</div>
<div id="column2">
<p>Column 2</p>
</div>
<div id="footer">
<p>Footer</p>
</div>
</div>
</div>
</body>
</html>
Add the following to your css:
Code:
.saleleft,
.saleright {
background-image:url(sale-logo.jpg);
background-repeat:no-repeat;
width:150px;
height:338px;
}
.saleleft {
float:left;
margin-left:-160px; /* sets distance of image from edge of #wrapper */
}
.saleright {
float:right;
margin-right:-160px; /* sets distance of image from edge of #wrapper */
-ms-transform:rotate(180deg); /* IE 9 */
-moz-transform:rotate(180deg); /* Firefox */
-webkit-transform:rotate(180deg); /* Safari and Chrome */
-o-transform:rotate(180deg); /* Opera */
transform:rotate(180deg);
}
#content-wrap {
margin:2px 0 0 -2px; /* changed to compensate for border width */
}
Bookmarks