I am trying to learn css and I am trying to move a picture where ever I want so I can start to understand how it all works. I tried it myself but it didn't work.
this is a screenshot to explain:
http://minus.com/lbvaaxnPAUiZ5y
this is where the pic is currently, I want it here:
http://minus.com/luuiToayST9jH
my css and html is below:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Forensic Tool Teacher</title>
<link href="ftt.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="main-wrapper">
<div class="header-wrapper">
<div class="main-header">
<div class="logo">
<a href="index.php"><img src="images/logo.png" name="logo" border="0" alt="" width="310px" height="80px"/></a>
</div>
<div id="main-nav">
<ul>
<li class='selected' ><a href="index.php">Home</a></li>
<li ><a href="..">Search</a></li>
<li ><a href="..">Videos</a></li>
<li ><a href="..">Contact</a></li>
<li ><a href="logout.php">Logout</a></li>
</ul>
</div>
<!--end main-nav-->
</div>
<!--end main-header-->
</div>
<!--end header-wrapper-->
<div class="content-wrapper">
<div class="content">
<div id="contentleft" style="float:left; width:100%; border:2px solid rgb(0, 0, 0); text-align:justify;">
<div id="form">
<form name="simple_bar" method="POST" action="formprocess2.php">
<table width="275" cellpadding="5">
<tr>
<td>
<p class="search">
<input type="text" name="Search" value="">
<input type="submit" name="Submit" value="Search">
</p>
</td>
</tr>
</table>
</form>
</div>
<br><br>
<div id="picture">
<img src="images/magnifying glass.jpg" alt="magnifying glass" width="100px" height="100px" style="padding:5px;" align="left"/>
</div>
<br><br><br><br><br><br>
<p>text goes here</p>
</div>
<br style="clear:both;" />
</div>
<!-- end content -->
</div>
<!--end content wrapper -->
<div id="footer">
<div class="container">
<div id="contactFooterColumn">
<span id="footer-header">© 2012 Adam Oram</span><br /><br />
<span style="line-height:15px;">
</span>
</div>
<!-- end contactFooterColumn -->
</div>
</div>
<!--end Container -->
</div>
<!-- end Footer --> </div>
<!-- end main-wrapper -->
</body>
</html>
CSS snippet
#picture
{
position:absolute;
left:100px;
top:150px;
}
sorry for such a long post but this is the only way I could explain it
thanks in advance

New Topic/Question
Reply



MultiQuote









|