<?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>Studio Eddies &#187; vertical margin</title>
	<atom:link href="http://www.studioeddies.com/en/tag/vertical-margin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.studioeddies.com/en/</link>
	<description>Graphic ＆Web Design ＠ SAPPORO</description>
	<lastBuildDate>Sat, 31 Jul 2010 04:15:16 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS: vertical margin??</title>
		<link>http://www.studioeddies.com/en/css-vertical-margin.html</link>
		<comments>http://www.studioeddies.com/en/css-vertical-margin.html#comments</comments>
		<pubDate>Sat, 12 Dec 2009 03:36:13 +0000</pubDate>
		<dc:creator>Eriko.N</dc:creator>
				<category><![CDATA[CSS @en]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[vertical margin]]></category>

		<guid isPermaLink="false">http://www.studioeddies.com/?p=268</guid>
		<description><![CDATA[　I will write about my recent html&#038;css work which puzzled me a lot. 　There are pictures and information of the persons. After clearing the float, &#8220;See all message from XXXXX&#8221; should be placed. I wanted the margin above and bellow &#8230; <a href="http://www.studioeddies.com/en/css-vertical-margin.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>　I will write about my recent html&#038;css work which puzzled me a lot.</p>
<div id="attachment_236" class="wp-caption alignnone" style="width: 261px"><a href="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA.gif"><img class="size-full wp-image-236" title="Ideal style" src="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA.gif" alt="I want the margin above and bellow the red text equal." width="251" height="269" /></a><p class="wp-caption-text">I want the margin above and bellow the red text equal.</p></div>
<p>　There are pictures and information of the persons. After clearing the float, &#8220;See all message from XXXXX&#8221; should be placed. I wanted the margin above and bellow of the read text EQUAL! I made the code like this (from the picture part to dividing border);<span id="more-268"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;individuals&quot;&gt;
	&lt;div class=&quot;repName&quot;&gt;
		&lt;img src=&quot;img/picture.jpg&quot;&gt;
		&lt;p&gt;&lt;span&gt;Firstname Surname&lt;/span&gt;&lt;br&gt;Executive Editor&lt;br&gt;Company&lt;/p&gt;
	&lt;/div&gt;
	&lt;p class=&quot;allDetails&quot;&gt;&lt;a href=&quot;#&quot;&gt;&amp;gt;&amp;gt; See all messages form XXXXX&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.individuals<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">360px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.repName<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">220px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.repName</span> img<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.repName</span> span<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.repName</span> p<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
p.allDetails<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>　Actually there are more floating parts but same rendering is occurred with this code. The result of rendering is like this;</p>
<div id="attachment_235" class="wp-caption aligncenter" style="width: 261px"><a href="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA_ie7.gif"><img src="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA_ie7.gif" alt="Internet Exproper 7" title="091209_caseA_ie7" width="251" height="296" class="size-full wp-image-235" /></a><p class="wp-caption-text">Internet Exproper 7</p></div>
<div id="attachment_234" class="wp-caption aligncenter" style="width: 261px"><a href="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA_etc.gif"><img src="http://www.studioeddies.com/wordpress/wp-content/uploads/091209_caseA_etc.gif" alt="IE8,Fairefos, Safari" title="091209_caseA_etc" width="251" height="289" class="size-full wp-image-234" /></a><p class="wp-caption-text">IE8,Fairefos, Safari</p></div>
<p>The top and bottom spaces of  &#8220;See all message from XXXXX&#8221; are different from IE7 and the others (Firefox, IE8, Safari). I don&#8217;t know why. But at all events, they are not what I want. The space should be equal between top margin and bottom margin.</p>
<p>I suspected the margin setting of the class name <em>individuals</em>. So, I added <em>margin: 0;</em> to the class name <em>p.allDetails</em> which define the style of &#8220;See all message from XXXXX&#8221; . Yes! Now you see the same result as the ideal <strong>A</strong> on all browsers(IE7, IE8, Firefox, Safari).</p>
<p> To tell the truth, I didn&#8217;t put <em>margin: 0;</em> to <em>p.allDetails</em> at the moment. I changed the <strong><br />
p tag</strong> to <strong>div tag</strong> like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;allDetails&quot;&gt;&lt;a href=&quot;#&quot;&gt;&amp;gt;&amp;gt; See all messages form XXXXX&lt;/a&gt;&lt;/div&gt;</pre></div></div>

<p>In this case you don&#8217;t need <em>margin: 0;</em> as it should be in <em>p.allDetails</em>. Right?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studioeddies.com/en/css-vertical-margin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
