<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>emj1025</author_name>
  <author_url>https://blog.hatena.ne.jp/emj1025/</author_url>
  <blog_title>emuramemo</blog_title>
  <blog_url>https://www.emuramemo.com/</blog_url>
  <categories>
    <anon>HTML・CSS</anon>
    <anon>webデザイン</anon>
  </categories>
  <description>デザインがあがってきたけどフロートコンテンツがコンテンツ幅ぴったりになってるけどどうするの？って経験、あると思います。 こんな感じ。コンテンツ幅がかつかつだとmargin入らないんですけど…って状態です。こんなときはネガティブマージンを使って回避する事ができます。 ソース この構成が以下のようになっているとします。 html &lt;div class=&quot;contents&quot;&gt; &lt;h1&gt;見出し&lt;/h1&gt; &lt;ul class=&quot;float_list&quot;&gt; &lt;li&gt;画像&lt;/li&gt; &lt;li&gt;画像&lt;/li&gt; &lt;li&gt;画像&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; css .contents { margin: 0 a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.emuramemo.com%2Fentry%2F2013%2F12%2F25%2F161702&quot; title=&quot;【css】フロートする時にコンテンツ幅を左右ぴったり横並びにする方法 - emuramemo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/e/emj1025/20131225/20131225161334.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-25 16:17:02</published>
  <title>【css】フロートする時にコンテンツ幅を左右ぴったり横並びにする方法</title>
  <type>rich</type>
  <url>https://www.emuramemo.com/entry/2013/12/25/161702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
