0

I have a page on a project I'm creating for class where I wanted to align an image in the left side, with the text to the right aligned in the middle of the image. Instead of using html elements, I decided to try an internal CSS div elements within my external CSS. My problem is that I can't get them to align correctly vertically. I have the horizontal alignment, but the text either appears one line above or one line below the image. I tried the techniques included in this posting, but they didn't fix my problem. Align <div> elements side by side

Here is my internal CSS.

<style type="text/css">
/* left div holding the image */
#left {
width:170px;
align:left;  }

/* right div to hold the text */
#right {
margin-left: 200px;
text-align:left; }
</style>

Here's the HTML

<div id="content">
<br/>
<br/>
<br/>
<blockquote>
<div id="right">Check back soon.  <a href="mailto:TwoWiredChicksJewelry@gmail.com?subject=AlertWhenPageComplete">Click here</a> to receive an email when the site becomes available.</div><div id="left"><img src="images/construction-clipart.jpg" border="1" alt="Page under construction" /></div>
</blockquote>
</div>

Can you help me figure out how to make these align? To view how it is rendering, please visit my student project site at http://www.student.nvcc.edu/home/ligomes/TwoWiredChicks/Browse.html.

Thanks!

Community
  • 1
  • 1

1 Answers1

0

Finally, I hope this helps now. All you have for the right css is:

#right {

    position: absolute;
    margin-left: 200px

}
Elmer
  • 180
  • 1
  • 2
  • 12