<?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>Borgar.net &#187; msie</title>
	<atom:link href="http://borgar.net/tagged/msie/feed/" rel="self" type="application/rss+xml" />
	<link>http://borgar.net</link>
	<description>All the wisdom of the rainbow.</description>
	<lastBuildDate>Tue, 23 Mar 2010 23:12:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-RC1-15022</generator>
		<item>
		<title>Replacing HR elements with images</title>
		<link>http://borgar.net/s/2007/01/style-hr-elements/</link>
		<comments>http://borgar.net/s/2007/01/style-hr-elements/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 14:52:22 +0000</pubDate>
		<dc:creator>Borgar</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[msie]]></category>

		<guid isPermaLink="false">http://borgar.undraland.com/s/2007/01/09/14.52.22/</guid>
		<description><![CDATA[Yesterday I was presented with the problem of using an image for the HR tag. Quick googling confirmed my suspicion, that this is something a lot of people want to achieve but apparently it can&#8217;t be done because of, as usual, IE&#8217;s limitations. The recommendations seem to be to either wrap the HR in a [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was presented with the problem of using an image for the <code>HR</code> tag. Quick googling confirmed my suspicion, that this is something a lot of people want to achieve but apparently <a href="http://www.sovavsiti.cz/css/hr.html" title="Styling HR with CSS">it can&#8217;t be done</a> because of, as usual, IE&#8217;s limitations.</p>
<p>The recommendations seem to be to either <a href="http://bitesizestandards.com/bites/styling-horizontal-rules-with-css" title="Styling horizontal rules with CSS">wrap the <code>HR</code> in a div</a> and styling that, or just simply work around it by not using images. But of course it can be done, and here&#8217;s how:</p>
<p>We start with some nice clean code for all the <q>&#8220;alternative&#8221;</q> browsers:</p>
<pre><code>hr {
  border : 0;
  height : 15px;
  background : url(hr.gif) 0 0 no-repeat;
  margin : 1em 0;
}</code></pre>
<p>This seems to work for all standards compliant modern browsers. I&#8217;ve tested it on Opera, Safari &#038; Firefox. However, it does not work on Explorer. <acronym title="Internet Explorer">IE</acronym> treats the element as inline and demands a border around it and a minimum height of 1px.</p>
<p><acronym title="Internet Explorer">IE</acronym> supports very basic generated content with the <code>list-style-image</code> setting when combined with <code>display: list-item</code>. This is what I&#8217;ve used to get around the limitations.</p>
<p>Add this into conditional comments (or hacks if you prefer) to shift the element out of the way and insert a bullet picture in the resulting space:</p>
<pre><code>hr {
  display : list-item;
  list-style : url(hr.gif) inside;
  filter : alpha(opacity=0);
  width : 0;
}</code></pre>
<p><del>My implementation here has the limitation of demanding that the image you use is equal to the width of the text area, but this should be easy to get around or customize.</del></p>
<p><del>The border setting can be replaced with a <code>color: #fff;</code>. To kill the default border you must set either one to the background color. Possibly it might be shifted out of hidden overflow but I have not tried it.</del></p>
<p>You can view a live example <a href="http://borgar.undraland.com/files/hr-example/" title="A live example of ">here</a>.</p>
<h3>Updated &#8211; 16. 1. 2007:</h3>
<p>I&#8217;ve updated this entry and the example with the <a href="http://mar.anomy.net/entry/2007/01/14/00.37.48/">improvements suggested by Már</a>. There are no longer any limitations on this technique.</p>]]></content:encoded>
			<wfw:commentRss>http://borgar.net/s/2007/01/style-hr-elements/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Árétting</title>
		<link>http://borgar.net/s/2006/11/aretting/</link>
		<comments>http://borgar.net/s/2006/11/aretting/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 11:53:39 +0000</pubDate>
		<dc:creator>Borgar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[fud]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[msie]]></category>

		<guid isPermaLink="false">http://borgar.undraland.com/s/2006/11/03/11.53.39/</guid>
		<description><![CDATA[Ég hef tekið eftir smá ugg í fólki vegna nýja Internet Explorer vafrans. Það er líklega skiljanlegt miðað við lætin og hávaðann í okkur sem störfum við vefgerð. Við erum kannski búin að rífast full mikið. Fyrir ykkur sem notið ennþá Windows er það vert að taka það fram að IE7 er alls ekkert óhollur [...]]]></description>
			<content:encoded><![CDATA[<p>Ég hef tekið eftir smá ugg í fólki vegna nýja Internet Explorer vafrans. Það er líklega skiljanlegt miðað við lætin og hávaðann í okkur sem störfum við vefgerð. Við erum kannski búin að rífast full mikið.</p>
<p>Fyrir ykkur sem notið ennþá Windows er það vert að taka það fram að <acronym title="Microsoft Internet Explorer 7">IE7</acronym> er alls ekkert óhollur fyrir kerfið ykkar. Þrátt fyrir að við vefnördar séum að agnúast út í hann er hann samt töluvert betri en <acronym title="Microsoft Internet Explorer 6">IE6</acronym>. Hann er einfaldlega ennþá ófullkomnari en aðrir vafrar og því heldur hann aftur af þróun vefsins.</p>
<p>Ykkur er alveg óhætt að setja upp <acronym title="Microsoft Internet Explorer 7">IE7</acronym> nú þegar uppfærslan er komin. Ég mæli samt sterklega með því að setja <em>líka</em> upp, og nota frekar <a href="http://www.getfirefox.com" title="Sæktu Firefox vafrann">Firefox</a> eða <a href="http://www.opera.com" title="Sæktu Opera vafrann">Opera</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://borgar.net/s/2006/11/aretting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
