Solved

Text does not wrap around the image

Posted on 2016-08-16
5
38 Views
Last Modified: 2016-08-16
I have created the following page:

http://www.sonoma.edu/exed/pmcp/test-agile-project-management-certificate-course.html

It is looking the way I want, except that the text in the second paragraph does not appear where I want it to. It is appearing on the line below the image creating a big space. I would like it to appear to the left of the image, i.e., wrapping around it, instead of below it. What should I do to get it to appear correctly?

Thanks.
0
Comment
Question by:geeta_m9
  • 2
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41758269
Your image is in a floated div - take it out of there and place it at the start of your <p> - then remove the div that contained it.

You should end up with something like this
 <h1>Agile Project Management Certificate</h1>
<p><img height="165" style="float: right; margin: 0 0 20px 20px;" src="images/agile.jpg" alt="agile.jpg" />
In the fast-paced business world of the 21st century, some opportunities may be missed with carefully pre-planned traditional project management practices. Rapid development and deployment of both physical and intellectual products requires a more aggressive approach, a more flexible approach, a more agile approach.</p>
<!-- REMOVED
<div style="float: right; width: 240px" class="right">
<img height="165" style="float: right; margin: 0 0 20px 20px;" src="images/agile.jpg" alt="agile.jpg">
</div> -->

Open in new window

0
 
LVL 2

Expert Comment

by:Martin Andrews
ID: 41758270
Remove the float rights from your image and put a width and float left on your paragraph tag
0
 

Author Comment

by:geeta_m9
ID: 41758291
Hi Julian,

Your recommendation worked great. Here is what the page looks like now:

http://www.sonoma.edu/exed/pmcp/test-agile-project-management-certificate-course.html

I also commented out the <div style="clear: both";></div> on line 63, to get rid of the  blank lines after the second paragraph and before the "Quick Links" box on the right.
0
 

Author Closing Comment

by:geeta_m9
ID: 41758318
Thank you.
0
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 41758487
You are welcome.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now