<?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: CSS floating problems</title>
	<atom:link href="http://blog.team-noir.net/2009/06/css-floating-problems/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.team-noir.net/2009/06/css-floating-problems/</link>
	<description>team noir blog</description>
	<lastBuildDate>Thu, 26 Jan 2012 15:05:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: karrock</title>
		<link>http://blog.team-noir.net/2009/06/css-floating-problems/comment-page-1/#comment-260</link>
		<dc:creator>karrock</dc:creator>
		<pubDate>Thu, 06 Aug 2009 16:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.team-noir.net/?p=127#comment-260</guid>
		<description>I now will answer to your post.
The site is growing and the problem with the gap is already existent. I refactored some of my code, put things together or centralized some code snippets (php).
I also centralized the code to build this part with the silly gap. In one case (on one site) it works fine and I have to replace my trick for the gap with just a div-container with css &quot;clear: both&quot;.
What I wanted to say is, that this silly gap is only in one case existent.

And the problem is not the hr itself. The problem is, as you mean, the code above. I used YAML and this means, it must be my code and my things I put around in the middle-column (where the problem appear).
At the time I started to refactor my php-code I tried some things out to re-understand what happens with this gap but I don´t find a better solution as I described above.

At the beginning of develope this &quot;gap hack&quot;, I also tried out what you wrote. I try to overwrite other css-attributes like margin, padding and so on, which will be inherit from yaml. But this doesn´t worked.

If I ever in my life will find a good solution I will write it down here... :)
But thanks for your suggestions!</description>
		<content:encoded><![CDATA[<p>I now will answer to your post.<br />
The site is growing and the problem with the gap is already existent. I refactored some of my code, put things together or centralized some code snippets (php).<br />
I also centralized the code to build this part with the silly gap. In one case (on one site) it works fine and I have to replace my trick for the gap with just a div-container with css &#8220;clear: both&#8221;.<br />
What I wanted to say is, that this silly gap is only in one case existent.</p>
<p>And the problem is not the hr itself. The problem is, as you mean, the code above. I used YAML and this means, it must be my code and my things I put around in the middle-column (where the problem appear).<br />
At the time I started to refactor my php-code I tried some things out to re-understand what happens with this gap but I don´t find a better solution as I described above.</p>
<p>At the beginning of develope this &#8220;gap hack&#8221;, I also tried out what you wrote. I try to overwrite other css-attributes like margin, padding and so on, which will be inherit from yaml. But this doesn´t worked.</p>
<p>If I ever in my life will find a good solution I will write it down here&#8230; <img src='http://blog.team-noir.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
But thanks for your suggestions!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fleshgrinder</title>
		<link>http://blog.team-noir.net/2009/06/css-floating-problems/comment-page-1/#comment-247</link>
		<dc:creator>Fleshgrinder</dc:creator>
		<pubDate>Wed, 15 Jul 2009 18:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.team-noir.net/?p=127#comment-247</guid>
		<description>It&#039;s hard to talk about your specific problem without an example. But I think I can imagine what you&#039;re talking about. I think the main problem are the predefined CSS properties of all browsers. So to get rid of this problem, try to use the Yahoo! CSS reset: &lt;a href=&quot;http://developer.yahoo.com/yui/reset/&quot; rel=&quot;nofollow&quot;&gt;Yahoo! UI Library: Reset CSS&lt;/a&gt;

If this isn&#039;t the solution for you problem you have to remind yourself about how a &lt;hr /&gt; is really working. In the end it doesn&#039;t matter which element you use. You can style a &lt;hr /&gt; that it&#039;s looking like a &lt;div&gt;-container. But it&#039;s very important to know how.

First of all I would have tried to kill all possible CSS statements by just directly typing a style-attribute within the Firebug console. Something like:
&lt;code&gt;&lt;hr style=&quot;margin:0;padding:0;width:100%;height:0;clear:both;background:none;border:none&quot; /&gt;&lt;/code&gt;
Normally the line should now be invisible. I don&#039;t know if you used a background image to create the dotted line (which sounds silly but often makes sense, because many browsers are rendering the dotted lines really ugly), if not my next step would be to add the dotted line:
&lt;code&gt;&lt;hr style=&quot;margin:0;padding:0;width:100%;height:0;clear:both;background:none;border:none;border-top:1px dotted #ccc&quot; /&gt;&lt;/code&gt;
To create the gaps I would use &lt;code&gt;margin:1em 0&lt;/code&gt; and the whole thing should be working fine.

But as I wrote before, it always depends on the whole website, sometimes there can be really annoying CSS declarations with in the main stylesheet - I really know it, one of my projects is really suffering from a huge stylesheet which is coded really bad.</description>
		<content:encoded><![CDATA[<p>It&#8217;s hard to talk about your specific problem without an example. But I think I can imagine what you&#8217;re talking about. I think the main problem are the predefined CSS properties of all browsers. So to get rid of this problem, try to use the Yahoo! CSS reset: <a href="http://developer.yahoo.com/yui/reset/" rel="nofollow">Yahoo! UI Library: Reset CSS</a></p>
<p>If this isn&#8217;t the solution for you problem you have to remind yourself about how a &lt;hr /&gt; is really working. In the end it doesn&#8217;t matter which element you use. You can style a &lt;hr /&gt; that it&#8217;s looking like a &lt;div&gt;-container. But it&#8217;s very important to know how.</p>
<p>First of all I would have tried to kill all possible CSS statements by just directly typing a style-attribute within the Firebug console. Something like:<br />
<code>&lt;hr style="margin:0;padding:0;width:100%;height:0;clear:both;background:none;border:none" /&gt;</code><br />
Normally the line should now be invisible. I don&#8217;t know if you used a background image to create the dotted line (which sounds silly but often makes sense, because many browsers are rendering the dotted lines really ugly), if not my next step would be to add the dotted line:<br />
<code>&lt;hr style="margin:0;padding:0;width:100%;height:0;clear:both;background:none;border:none;border-top:1px dotted #ccc" /&gt;</code><br />
To create the gaps I would use <code>margin:1em 0</code> and the whole thing should be working fine.</p>
<p>But as I wrote before, it always depends on the whole website, sometimes there can be really annoying CSS declarations with in the main stylesheet &#8211; I really know it, one of my projects is really suffering from a huge stylesheet which is coded really bad.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

