Jump to content

Problem with image placement


Recommended Posts

Hello, I've got a problem with placing an image inside a div on my website. Every time I add the image into the code it drags text from my footer up with it, I've tried a couple different ways of positioning it, in the styl;es.css etc but to no avail. I'll post the code exmple below: <div id="content"><a href="#"><img src="images/template.png" alt="our img" style="border: 1px solid #000101; </a> <!--CONTENT ENDS--> </div> And below that there's a div 'footer' of which has some text about copyright, it gets dragged up into the content area. In some cases it was dragging my navigation down too. I couldn't find any information about this so decided to post, hope you can help, thanks.

Link to post
Share on other sites
You don't have a closing for style, OR image tag<div id="content"><a href="#"><img src="images/template.png" alt="our img" style="border: 1px solid #000101;"> </a> <!--CONTENT ENDS--></div>
Ahhh, that fixed it. I feel stupid lol. I'm new to this, trying to learn more, thanks for your help. While I'm here, what'd be the best way of positioning these images? For instance I'm going to have 9 images all equally spaced, so 3, next row 3, next row 3. Edited by Ulterior
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...