How to position a picture within an element?
Hi guys, I started learning HTML and CSS approximately two months ago. I've just been creating a practice website that I don't intend to publish, at least not at the moment. I'm trying to position a picture of a yellow Postik note within an element that contains a contact form. It doesn't matter how much I resize the picture, float it right (which is where I want it to be), change the margins, I just can't get it to appear to the right of the contact form. I can easily position it under my contact form (before the horizontal line), but not to the top-right. I can move it right, but it just won't position further up so it's parallel to the contact form. Here's a snippet of the code - but note that my whole website is positioned within the middle of the screen (it's 800px wide). Let me know. Any help would be appreciated. <!-- Contact Form Starts Here --> <aside> <div class="Sidebar"> <h3>Contact Me</h3> <form> <input name="name" type="text" /><br /> <input name="email" type="email" /><br /> <textarea name="message"></textarea><br /> <input type="submit" value="Send" class="submit" /> </form> <img src="images/contactme.jpg" alt="Postik Note"> </div> </aside> <!-- Contact Form Ends Here --> <hr /> .Sidebar img { margin-top: 15px; height: 150px; width: 180px; float: right; } .Sidebar { border-radius: 5px; background-color: #f2f2f2; padding: 20px; } You won't see the picture, as it's not located on my web. If you want to see the whole code, you can find it here: https://trinket.io/html/a0bb0dafef Thanks very much!