<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saffron Stroke - Your Web Design Resource &#187; wrap text</title>
	<atom:link href="http://www.saffronstroke.com/tag/wrap-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saffronstroke.com</link>
	<description>Design Blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 06:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Float an image and wrap text around it in Microsoft Expression Web</title>
		<link>http://www.saffronstroke.com/2009/04/28/float-an-image-and-wrap-text-around-it-in-microsoft-expression-web/</link>
		<comments>http://www.saffronstroke.com/2009/04/28/float-an-image-and-wrap-text-around-it-in-microsoft-expression-web/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 16:30:00 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Expression]]></category>
		<category><![CDATA[Expression Suite]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[float image]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[wrap text]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=469</guid>
		<description><![CDATA[CSS property float is used to position (float) a block level element within another element. You can float block level elements like divisions &#60;div&#62;, paragraphs &#60;p&#62;, images &#60;img /&#62; and lists &#60;ul&#62; to left or right of the page. Float is widely used to align image and wrap text around it in a same container. [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/04/28/float-an-image-and-wrap-text-around-it-in-microsoft-expression-web/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F04%2F28%2Ffloat-an-image-and-wrap-text-around-it-in-microsoft-expression-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F04%2F28%2Ffloat-an-image-and-wrap-text-around-it-in-microsoft-expression-web%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">CSS property <strong>float</strong> is used to position (float) a block level element within another element. You can float block level elements like divisions &lt;div&gt;, paragraphs &lt;p&gt;, images &lt;img /&gt; and lists &lt;ul&gt; to left or right of the page. Float is widely used to align image and wrap text around it in a same container. Let us see how.</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><strong><span style="font-size:small;"><span style="font-family:Calibri;">Float an image to the left in a paragraph and wrap text around it</span></span></strong></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Set a style for the image by creating a New Style in Apply/Manage Styles task pane. In the New Style dialog box given below; choose <strong>Layout</strong> and set <strong>float: left</strong>.</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"> <span style="font-size:small;font-family:Calibri;"><img class="alignnone size-full wp-image-470" title="img_style" src="http://www.saffronstroke.com/wp-content/uploads/2009/04/img_style.jpg" alt="img_style" width="433" height="415" /></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Then in<strong> Box</strong> category, set margins as top: 5px, right: 10px, bottom: 5px and left: 0px. Also set a border for the image in <strong>Border</strong> category. Click on OK to generate below mentioned style;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">&lt;style type=&#8221;text/css&#8221;&gt;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">img{</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>float: left;</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>margin:5px 10px 5px 0px;</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;"><span>                </span>border: thin black dotted;</span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">}</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">&lt;/style&gt;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">In the main body of the page, add a paragraph, enter the text and embed the image into it. Go to the Design view and type in the text. To insert the image, go to Insert menu &gt; Picture &gt; From File… Then browse to the path of the image and click on Insert. In the Code view the code looks as follows:</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">&lt;body&gt;</span></p>
<p class="MsoNormal" style="padding-left:30px;margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">       </span><span style="font-size:small;font-family:Calibri;">&lt;p&gt;</span></p>
<p class="MsoNormal" style="padding-left:30px;margin:0 0 10pt .5in;"><span style="font-size:small;"><span style="font-family:Calibri;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, </span></span><span style="font-size:small;"><span style="font-family:Calibri;">sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </span></span></p>
<p class="MsoNormal" style="padding-left:30px;margin:0 0 10pt .5in;"><span style="font-size:small;"><span style="font-family:Calibri;">&lt;img src=&#8221;arrow_right_green.png&#8221; style=&#8221;float:left&#8221;/&gt;</span></span></p>
<p class="MsoNormal" style="padding-left:30px;margin:0 0 10pt .5in;"><span style="font-size:small;"><span style="font-family:Calibri;">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris </span></span><span style="font-size:small;"><span style="font-family:Calibri;"><span> </span>nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in </span></span><span style="font-size:small;"><span style="font-family:Calibri;">reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </span></span><span style="font-size:small;"><span style="font-family:Calibri;">Excepteur sint occaecat cupidatat non proident, </span></span><span style="font-size:small;"><span style="font-family:Calibri;">sunt in culpa qui officia deserunt mollit anim id est laborum. <span> </span></span></span></p>
<p class="MsoNormal" style="margin:0 0 10pt .5in;"><span style="font-size:small;"><span style="font-family:Calibri;"></span></span><span style="font-size:small;font-family:Calibri;">&lt;/p&gt;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">&lt;/body&gt;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">&lt;/html&gt;</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;font-family:Calibri;">Save the file and preview it in the browser. The output will be as follows:</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><img class="alignnone size-full wp-image-471" title="output" src="http://www.saffronstroke.com/wp-content/uploads/2009/04/output.jpg" alt="output" width="460" height="128" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/04/28/float-an-image-and-wrap-text-around-it-in-microsoft-expression-web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

