Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Text does not wrap around the image

Posted on 2016-08-16
5
49 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 55

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 55

Expert Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

860 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