I am looking to position an image on the left side of my homepage using CSS instead of HTML. However, I am having trouble figuring out how to make it work. The image I want to use is called Nobullying.jpg. HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="body.css"/>
</head>
<body>
<h1>Bully-Free Zone</h1>
<h2>"Online harassment has an off-line impact"</h2>
<!--Menu-->
<div id="nav">
<a href="mainpage.htm" class="nav-link">HOME</a>
<a href="page1.htm" class="nav-link">ASSISTANCE</a>
<a href="page2.htm" class="nav-link">CYBER-BULLYING SIGNS</a>
<a href="page3.htm" class="nav-link">REPORT</a>
</div>
<div id="picture"></div>
<!--Copyright-->
<div id="center">
<td> Copyright © 2012 Bully-FreeZone.com</td>
</div>
</body>
</html>
Css class:
#picture{background-image:Nobullying.jpg;
width:40px; height:40px;
}
This is where I would like to place the image (Red box) https://i.sstatic.net/XMyVo.jpg