"Jim S" <
j...@jimXscott.co.uk> skrev i meddelelsen
news:159qssxqmqnhq$.dlg@jimXscott.co.uk...
If you'll accept a solution less than optimum.
You could wrap the picture in a div like the example below.
To se the result, find a picture of 200px x 200px.
Or modify to suit another picture size. Alternate, you could
make a background picture of essentially the same size as the
picture, and put it into the wrapper div . A picture that have
soft transparent edges and roundings. The position relative
does hide two of the picture-edges in both carrying outs.
The last described method gives a professional look. It should
not be nessesary to put the picture itself in a picture editor. It's
a bit tricky matching the colours in the first method - shown below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled</title>
<style type="text/css">
#con{
background-color:#CCCCCC;
margin:0 auto;
padding:100px
}
.shadow {
background-color:#BDBDBD;
border: 1px #BFBFBF solid;
width:200px;
height:200px;
margin:0 auto;
}
.imag {
position:relative;
right:5px;
top:3px;
background:url('images/yourpic200x200px.jpg') #BCBCBC no-repeat;
height:200px;
width:200px;
margin:0px auto;
border: 1px #BCBCBC solid;
text-decoration:none;
}
</style>
</head>
<body>
<div id="con">
<div class="shadow">
<div class="imag"></div>
</div>
</div>
</body>
</html>