<?xml version="1.0"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:dcterms="http://purl.org/dc/terms/"
     xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tyler Cipriani: CSS display inline-block Extra Margin/Space</title>
<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/</link>
<atom:link href="https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comments.rss" rel="self" type="application/rss+xml"/>

<copyright>Copyright © 2017 Tyler Cipriani</copyright>

<description>Tyler Cipriani</description>
<generator>ikiwiki</generator>
<pubDate>Wed, 13 Jun 2018 19:34:11 +0000</pubDate>
<item>
	<title>comment 1</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comment_1_1f7f1cdbfd3fce90e72c6453ee617f08/</guid>

	<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/#comment-f5251e8cb026df88874f71418b7374ac</link>

	<dc:creator>bestdenis2008</dc:creator>


	<pubDate>Mon, 11 Nov 2013 06:39:14 +0000</pubDate>
	<dcterms:modified>2018-06-13T19:34:11Z</dcterms:modified>


	<description>&lt;blockquote&gt;
&lt;p&gt;Second, directly address the space by setting a negative right margin or negative&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It’s a font-dependent solution, isn’t it?&lt;/p&gt;

</description>


</item>
<item>
	<title>comment 2</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comment_2_cad18998d316750ce8863b50acac3fc5/</guid>

	<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/#comment-9380795cb676a2ac0fdc250d8c388adf</link>

	<dc:creator>thcipriani</dc:creator>


	<pubDate>Mon, 11 Nov 2013 06:50:42 +0000</pubDate>
	<dcterms:modified>2018-06-13T19:34:11Z</dcterms:modified>


	<description>&lt;p&gt;Yezzur, that solution will depend on the font-size of the parent container. An easier solution might be to just set font-size: 0; on the parent container.&lt;/p&gt;
&lt;p&gt;The more I play with inline-block, the more I like the comment based solution.&lt;/p&gt;
&lt;p&gt;You’ll see more solutions in that CSS Tricks article I have linked up.&lt;/p&gt;

</description>


</item>
<item>
	<title>comment 3</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comment_3_888e4deeb0cb19e5a356b5211dafad3f/</guid>

	<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/#comment-86b9551a08bc5f3521980516dec7564c</link>

	<dc:creator>guest</dc:creator>


	<pubDate>Fri, 24 Jan 2014 14:29:22 +0000</pubDate>
	<dcterms:modified>2018-06-13T19:34:11Z</dcterms:modified>


	<description>or even better, set font-size: 0px on the parent div
</description>


</item>
<item>
	<title>comment 4</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comment_4_76ca8273799334281d238c9056e25315/</guid>

	<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/#comment-1b63b5eace1bbf9e11c1b47385b2cadf</link>

	<dc:creator>aayix</dc:creator>


	<pubDate>Thu, 24 Apr 2014 00:45:16 +0000</pubDate>
	<dcterms:modified>2018-06-13T19:34:11Z</dcterms:modified>


	<description>&lt;p&gt;Yes Guest, font size 0px is required if you want to display the inline-block elements aligned to center. if u have text in the inner elements u’ll need to set the font size for those back again&lt;/p&gt;

</description>


</item>
<item>
	<title>comment 5</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/comment_5_731bb409539a922da91d93dc3b169f44/</guid>

	<link>https://tylercipriani.com/blog/2012/08/01/display-inline-block-extra-margin/#comment-7a1fa2403640b942cfa83fa5073c09bb</link>

	<dc:creator>foo</dc:creator>


	<pubDate>Tue, 06 Jan 2015 15:32:35 +0000</pubDate>
	<dcterms:modified>2018-06-13T19:34:11Z</dcterms:modified>


	<description>&lt;p&gt;Two alternatives:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;&lt;p&gt;set font-size: 0 on the immediate parent and redefine the font-size of the affected (inline-block) children&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;just use float: left. display: block is redundant (as it’s inferred from floating)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>


</item>

</channel>
</rss>
