Fri Feb 17, 2012 4:52 pm
<html>
<head>
<title>negative margins with images</title>
<style type="text/css">
p {
position: absolute;
top: 50%;
left: 50%;
}
img {
margin-top: -100px;
margin-left: -100px;
}
</style>
</head>
<body>
<p>
Example of using negative margins with images
<img src="site_logo.gif" width="100" height="100" alt="Logo">
</p>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.