<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Exceptionally Negative</title>
	<atom:link href="http://simplebits.com/notebook/2005/05/23/negative/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplebits.com/notebook/2005/05/23/negative/</link>
	<description>Handcrafted pixels &#38; text from Salem, Massachusetts.</description>
	<lastBuildDate>Tue, 08 Dec 2009 23:15:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Laurence</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7537</link>
		<dc:creator>Laurence</dc:creator>
		<pubDate>Fri, 04 Nov 2005 11:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7537</guid>
		<description>Thanks a lot - a recent design dictated that the entirety of the content section be padded (left) to a certain degree, save for a couple of &#039;utility&#039; links (such as &#039;Print Page&#039;, &#039;Back to top&#039;) at the bottom which started further back, within the space created by the padding.
One of those things which should be really quick, but various methods I tried didn&#039;t quite hit the mark.  This came in really handy and saved me a few hairs!
</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8211; a recent design dictated that the entirety of the content section be padded (left) to a certain degree, save for a couple of &#8216;utility&#8217; links (such as &#8216;Print Page&#8217;, &#8216;Back to top&#8217;) at the bottom which started further back, within the space created by the padding.<br />
One of those things which should be really quick, but various methods I tried didn&#8217;t quite hit the mark.  This came in really handy and saved me a few hairs!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Girin</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7536</link>
		<dc:creator>Bruno Girin</dc:creator>
		<pubDate>Mon, 13 Jun 2005 20:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7536</guid>
		<description>That&#039;s what I use to push photos and notes into the left margin on my blog. It works a treat!
</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I use to push photos and notes into the left margin on my blog. It works a treat!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7535</link>
		<dc:creator>Andres</dc:creator>
		<pubDate>Wed, 08 Jun 2005 22:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7535</guid>
		<description>I don&#039;t think that anybody has mentioned this already, but one positive (depending on who you ask) side-effect is that elements that fall outside of the container due to nevagitve margins don&#039;t count towards the total width of the container.
In other words, you can have a DIV set to 750px wide that has some elements that need to stick out due to the design (such as decorative graphics) and for some reason you can&#039;t place it in the background of the BODY or DIV. You can position these with negative margins and have it not affect the DIVs width as far as the browser is concerned.
Why is this useful? No horizontal scroll-bars in some browsers.
I used this technique recently on a site that has some really complicated image layering that was unrealistic to do with background images and that went well beyond 1000px wide.
Thought I share my unexpected finding.
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think that anybody has mentioned this already, but one positive (depending on who you ask) side-effect is that elements that fall outside of the container due to nevagitve margins don&#8217;t count towards the total width of the container.<br />
In other words, you can have a DIV set to 750px wide that has some elements that need to stick out due to the design (such as decorative graphics) and for some reason you can&#8217;t place it in the background of the BODY or DIV. You can position these with negative margins and have it not affect the DIVs width as far as the browser is concerned.<br />
Why is this useful? No horizontal scroll-bars in some browsers.<br />
I used this technique recently on a site that has some really complicated image layering that was unrealistic to do with background images and that went well beyond 1000px wide.<br />
Thought I share my unexpected finding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7534</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Sun, 05 Jun 2005 01:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7534</guid>
		<description>I don&#039;t know it it&#039;s been mentioned but you can also &lt;a href=&quot;http://blog.one-waymedia.com/?p=6&quot; title=&quot;Center DIVs using CSS - margins&quot; rel=&quot;nofollow&quot;&gt;use negitave margins to center fixed-width DIVs&lt;/a&gt; horizontally &lt;em&gt;and&lt;/em&gt; vertically. I use them for that all the time. :-)
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know it it&#8217;s been mentioned but you can also <a href="http://blog.one-waymedia.com/?p=6" title="Center DIVs using CSS - margins" rel="nofollow">use negitave margins to center fixed-width DIVs</a> horizontally <em>and</em> vertically. I use them for that all the time. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7533</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 02 Jun 2005 06:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7533</guid>
		<description>Great post Dan! I just used this effect the other day to pull some headings over. It completely broke down in all versions of IE. IE just didn&#039;t want to nudge the headers over. Tried a bunch of stuff, but in the end, I used some css filters to feed IE its own styles to work with.
</description>
		<content:encoded><![CDATA[<p>Great post Dan! I just used this effect the other day to pull some headings over. It completely broke down in all versions of IE. IE just didn&#8217;t want to nudge the headers over. Tried a bunch of stuff, but in the end, I used some css filters to feed IE its own styles to work with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa Giovanni</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7532</link>
		<dc:creator>Lisa Giovanni</dc:creator>
		<pubDate>Wed, 01 Jun 2005 13:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7532</guid>
		<description>This is so unbelievably cool tip. Thanks.
</description>
		<content:encoded><![CDATA[<p>This is so unbelievably cool tip. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7531</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 31 May 2005 23:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7531</guid>
		<description>Hmm so how do you fix the problem in IE? As i have come accross this problem but found no easy solution.
</description>
		<content:encoded><![CDATA[<p>Hmm so how do you fix the problem in IE? As i have come accross this problem but found no easy solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Smith</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7530</link>
		<dc:creator>Nathan Smith</dc:creator>
		<pubDate>Fri, 27 May 2005 20:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7530</guid>
		<description>In order to not have to use margin/padding hacks for IE, I usually never give side margin/padding to div&#039;s but instead give margin/padding to h1, h2, p, etc.  That way, there&#039;s already the potential for varying indentation built-in.
That&#039;s what I&#039;ve done on my own site, anyways.  I realize this might not be the most time-efficient way to do things, as it takes more fine-tuning.  But, on that token - so do CSS hacks.
</description>
		<content:encoded><![CDATA[<p>In order to not have to use margin/padding hacks for IE, I usually never give side margin/padding to div&#8217;s but instead give margin/padding to h1, h2, p, etc.  That way, there&#8217;s already the potential for varying indentation built-in.<br />
That&#8217;s what I&#8217;ve done on my own site, anyways.  I realize this might not be the most time-efficient way to do things, as it takes more fine-tuning.  But, on that token &#8211; so do CSS hacks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7529</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 27 May 2005 19:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7529</guid>
		<description>&lt;a href=&quot;#comment21&quot; rel=&quot;nofollow&quot;&gt;Aristotle&lt;/a&gt;,
One major problem with that approach is that it can be a bit overreaching... for example, that will add a left-margin to all elements inside #content, not just its immediate descendents. Using the child selector would remedy this, but then it wouldn&#039;t work in IE. The negative margin approach appears to be simpler and more precise.
</description>
		<content:encoded><![CDATA[<p><a href="#comment21" rel="nofollow">Aristotle</a>,<br />
One major problem with that approach is that it can be a bit overreaching&#8230; for example, that will add a left-margin to all elements inside #content, not just its immediate descendents. Using the child selector would remedy this, but then it wouldn&#8217;t work in IE. The negative margin approach appears to be simpler and more precise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://simplebits.com/notebook/2005/05/23/negative/#comment-7528</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 27 May 2005 18:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2005/05/23/negative/#comment-7528</guid>
		<description>&lt;a href=&quot;http://www.simplebits.com/notebook/2005/05/23/negative.html#comment21&quot; title=&quot;Mike&quot; rel=&quot;nofollow&quot;&gt;Mike&lt;/a&gt;-
I&#039;ll give it a stab. Say we&#039;re talking about the top-margin only for an element. Initially we set it to 0px. Now, if we say:
&lt;code&gt;margin-top: 10px;&lt;/code&gt;
the element will now have a position 10px further down on the page because of the space this margin creates.
Conversely, if we say:
&lt;code&gt;margin-top: -10px;&lt;/code&gt;
the element will &lt;strong&gt;now&lt;/strong&gt; be 10px further &lt;strong&gt;up&lt;/strong&gt; on the page because of the negative margin created. Maybe that is a clearer way of understanding. But like &lt;a href=&quot;http://www.hunox.ca/&quot; title=&quot;Ottawa&quot; rel=&quot;nofollow&quot;&gt;Ottawa&lt;/a&gt; says, trying it &lt;strong&gt;is&lt;/strong&gt; the best way to get it.
</description>
		<content:encoded><![CDATA[<p><a href="http://www.simplebits.com/notebook/2005/05/23/negative.html#comment21" title="Mike" rel="nofollow">Mike</a>-<br />
I&#8217;ll give it a stab. Say we&#8217;re talking about the top-margin only for an element. Initially we set it to 0px. Now, if we say:<br />
<code>margin-top: 10px;</code><br />
the element will now have a position 10px further down on the page because of the space this margin creates.<br />
Conversely, if we say:<br />
<code>margin-top: -10px;</code><br />
the element will <strong>now</strong> be 10px further <strong>up</strong> on the page because of the negative margin created. Maybe that is a clearer way of understanding. But like <a href="http://www.hunox.ca/" title="Ottawa" rel="nofollow">Ottawa</a> says, trying it <strong>is</strong> the best way to get it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

