<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dented Reality &#187; css</title>
	<atom:link href="http://dentedreality.com.au/tags/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://dentedreality.com.au</link>
	<description>Beau Lebens throws down his opinion on all sorts of things he doesn&#039;t know too much about.</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:48:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Making Internet Explorer Behave Like a Real Browser</title>
		<link>http://dentedreality.com.au/2008/04/making-internet-explorer-behave-like-a-real-browser/</link>
		<comments>http://dentedreality.com.au/2008/04/making-internet-explorer-behave-like-a-real-browser/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 17:23:31 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/?p=400</guid>
		<description><![CDATA[Recently I&#8217;ve been doing a lot of cross-browser work (IE 6 + 7, FF and Safari required to function similarly, unfortunately), and I&#8217;ve narrowed down my list of hacks/tricks to make Internet Explorer be able to actually render standards-compliant HTML in a manner remotely befitting a modern browser. Here are my list of &#8220;go-to&#8221; hacks [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been doing a lot of cross-browser work (IE 6 + 7, FF and Safari required to function similarly, unfortunately), and I&#8217;ve narrowed down my list of hacks/tricks to make Internet Explorer be able to actually render standards-compliant HTML in a manner remotely befitting a modern browser. Here are my list of &#8220;go-to&#8221; hacks which seem to fix at least 90% of rendering, layout and positioning issues in IE(6|7).</p>
<p><span id="more-400"></span></p>
<h3>Napoleon Syndrome</h3>
<p>Apparently Internet Explorer has a problem with its height. All too often, it needs to be told how tall a block element is just to render it remotely properly. Personally I like to tease IE with the fact, taunting it about its height issues by applying the smallest height property I can. The fix here is just to apply:</p>
<pre lang="css">height: 1%;</pre>
<p>to block elements that are having trouble rendering properly (or at all) and they seem to come back to life. This is generally referred to as the &#8220;<a href="http://www.positioniseverything.net/abs_relbugs.html">Holly Hack</a>&#8221; (look for that title). You may also choose to assign a specific pixel height or something else more indicative, but I don&#8217;t like to give IE the satisfaction of making me figure that out.</p>
<h3>Put IE in position</h3>
<p>You&#8217;d be surprised how many floating/positioning problems can be fixed by simply adding</p>
<pre lang="css">position: relative;</pre>
<p>to a CSS definition. Try it. It especially comes in handy when you&#8217;ve got <a href="http://snook.ca/archives/html_and_css/position_relative_overflow_ie/">overflow defined on some elements</a>, as described by Jonathan Snook over at <a href="http://snook.ca/jonathan/">snook.ca</a> (sexy site BTW).</p>
<h3>Broken CSS Attribute Parsing is Your Friend!</h3>
<p>The last pair of hacks come care of Internet Exploder&#8217;s broken CSS parsing, which does/doesn&#8217;t recognize certain attributes, despite their invalid definition. I specifically like the way that this brokenness can be &#8220;stacked&#8221; to achieve different results in different browsers. An example:</p>
<pre lang="css">#crazy-div {
position: relative;
left: 0px;
_left: 100px;
*left: 200px;
}</pre>
<p>What&#8217;s up with all the * and _ business you ask? Well it turns out that those characters are basically ignored by IE, so it will take those rules into account, even though Real Browsers won&#8217;t. So that set of rules goes something like this:</p>
<ol>
<li>position: relative; everyone understands and applies this.</li>
<li>left: 0px; all browsers get this as well, so it&#8217;s applied across the board.</li>
<li>_left: 200px; This is the <a href="http://www.wellstyled.com/css-underscore-hack.html">Underscore Hack</a>, which IE 5+ will render properly (IE 7 managed to fix this one), so IE 5 + 6 will move #crazy-div over 100px.</li>
<li>*left: 100px; Internet Explorer 7 (only) will ignore the asterisk and render this rule, so #crazy-div will be shifted 200px.</li>
</ol>
<p>So there you have a decent way to get a set of rules in place that will allow you to target certain (lame) browsers and fix up some of their rendering and positioning problems. I&#8217;m sorry that you&#8217;ll need to use these hacks, but the Internet is a messy place <img src='http://dentedreality.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2008/04/making-internet-explorer-behave-like-a-real-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Customizing WordPress 2.5&#8242;s Admin Panel</title>
		<link>http://dentedreality.com.au/2008/03/customizing-wordpress-25s-admin-panel/</link>
		<comments>http://dentedreality.com.au/2008/03/customizing-wordpress-25s-admin-panel/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 19:02:08 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[admin panel]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp admin color schemer]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/?p=395</guid>
		<description><![CDATA[While I was poking around in a pre-release version of WordPress 2.5 (which has been slightly delayed for actual release), I found out that the Admin panel (everything under /wp-admin/) is now pretty easily customizable through CSS. Basically what they&#8217;ve done is extracted all the color-based information from the admin CSS files, and put them [...]]]></description>
			<content:encoded><![CDATA[<p>While I was poking around in a pre-release version of WordPress 2.5 (which has been slightly delayed for actual release), I found out that the Admin panel (everything under /wp-admin/) is now pretty easily customizable through CSS.</p>
<p>Basically what they&#8217;ve done is extracted all the color-based information from the admin CSS files, and put them into pluggable files called &#8220;Admin Color Schemes&#8221;. The cool bit is that it looks really easy to add your own! It looks like the Admin Color Scheme is one of the last (core) stylesheets loaded into a page as well, which means you&#8217;re really not limited to only changing the colors.</p>
<p>So how do you do it? Here we go:</p>
<ol>
<li>Download this plugin: <a href="/download/12/">WP Admin Color Schemer 1.0</a><a href="http://wiggin.local/dev/dentedreality.com.au/wp-admin/download"></a></li>
<li>Install and enable the plugin, which will look for CSS files inside its own &#8220;/schemes/&#8221; directory (/wp-content/plugins/wp-admin-color-schemer/schemes/*.css).</li>
<li>Create your own CSS file and drop it in that directory. The <strong>filename</strong> of the CSS file should be a lower-case, letters/numbers only, dash-separated version of the name of the scheme. For example, a scheme called &#8220;Billy&#8217;s Amazing Scheme&#8221; would be in a file named &#8220;billy-s-amazing-scheme.css&#8221; (replace everything that <strong>isn&#8217;t</strong> a letter or a number with a dash, but only ever have a single dash at a time). Make sure the first line looks like this (with &#8220;My Admin Scheme&#8221; being the name you want to give your scheme, and each hex value representing one of the main colors used in your CSS palette. This <strong>must</strong> be the first line of the CSS file, be commented out as below, and <strong>must</strong> contain commas, but the spaces are optional):</li>
</ol>
<pre lang="css">/* My Admin Scheme, #000000, #111111, #222222, #333333 */</pre>
<p>Once you&#8217;ve done that, <strong>go to your profile page</strong> within the Admin Panel, and you&#8217;ll see your new scheme and should be able to easily select it. When you hit the Update button, your Admin Panel should take on the  new colors immediately.</p>
<p>If you&#8217;d like to use one of the built-in Admin Color Schemes as a starting point, then they live at /wp-admin/css/colors-classic.css and colors-fresh.css.</p>
<p>Now you can easily style your Admin Panel to match the rest of your site (and hopefully Theme authors out there will start packaging Admin Color Schemes to match their Themes).</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2008/03/customizing-wordpress-25s-admin-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Resizable Google</title>
		<link>http://dentedreality.com.au/2003/12/resizable-google/</link>
		<comments>http://dentedreality.com.au/2003/12/resizable-google/#comments</comments>
		<pubDate>Thu, 18 Dec 2003 02:47:00 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/2003/12/resizable-google/</guid>
		<description><![CDATA[I don&#8217;t know if anyone else noticed, or indeed when it actually happened, but I know that a couple months ago, you couldn&#8217;t successfully resize the Google results pages using the &#8216;Text Size&#8217; option in Internet Explorer. Purely by accident, I opened a Google page with my text size set to &#8216;largest&#8217; and lo and [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if anyone else noticed, or indeed when it actually happened, but I know that a couple months ago, you couldn&#8217;t successfully resize the <a href="http://www.google.com/">Google</a> results pages using the &#8216;Text Size&#8217; option in Internet Explorer.</p>
<p>Purely by accident, I opened a <a href="http://www.google.com/">Google</a> page with my text size set to &#8216;largest&#8217; and lo and behold, they have modified their HTML to allow for resizing of fonts. Even their AdWords ads resize according to the browser preference.</p>
<p>Looking at the source, it looks like they are slowly moving towards a CSS-based layout/design, although they still have a ways to go. Incidentally, I did a copy of their layout with CSS for an internal search engine that I built and it wasn&#8217;t that hard at all, their design even lends itself to being done with DIVs, UL/LIs and A tags, styled up with CSS.</p>
<p>So here&#8217;s their style definition on a results page now-days;</p>
<pre>body,td,div,.p,a{font-family:arial,sans-serif }
div,td{color:#000}
.f,.fl:link{color:#6f6f6f}
a:link,.w,a.w:link,.w a:link{color:#00c}
a:visited,.fl:visited{color:#551a8b}
a:active,.fl:active{color:#f00}
.t a:link,.t a:active,.t a:visited,.t{color:#ffffff}
.t{background-color:#3366cc}
.h{color:#3366cc}
.i,.i:link{color:#a90a08}
.a,.a:link{color:#008000}
.z{display:none}
div.n {margin-top: 1ex}
.n a{font-size:10pt; color:#000}
.n .i{font-size:10pt; font-weight:bold}
.q a:visited,.q a:link,.q a:active,.q {color: #00c; text-decoration: none;}
.b{font-size: 12pt; color:#00c; font-weight:bold}
.ch{cursor:pointer;cursor:hand}
.e{margin-top: .75em; margin-bottom: .75em}
.g{margin-top: 1em; margin-bottom: 1em}</pre>
<p>As you can see, they are not defining a font size for a lot of their elements, which is a good move, as it will inherit the browser settings automatically. One thing that I did notice is that the fixed-size fonts they are using (&#8220;.n a&#8221; and &#8220;.n .i&#8221;) are only applied to the numbers used for the links to different pages of results. I am assuming that they have done this because otherwise there&#8217;s the potential that thei cool little string of &#8216;o&#8217;s will be messed up from font sizing <img src='http://dentedreality.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Good Work Google! Good to see more of the big-boys embracing CSS design, I just hope that they continue down this path and have a completely CSS-driven design in the near future, browsers are almost up to speed so that it&#8217;s a valid move for them I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2003/12/resizable-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>CSS2 Selectors</title>
		<link>http://dentedreality.com.au/2003/07/css2-selectors/</link>
		<comments>http://dentedreality.com.au/2003/07/css2-selectors/#comments</comments>
		<pubDate>Tue, 22 Jul 2003 15:10:00 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css2]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[lynx]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/2003/07/css2-selectors/</guid>
		<description><![CDATA[I am using CSS2 selectors in the style sheet for the new Dented Reality website to try and avoid some of the problems in layout/sizing that I was having between Mozilla (Netscape), Opera and IE6. I haven&#8217;t tested on IE5.x yet, but according to some of the &#8220;css hack&#8221; sites I have been looking at, [...]]]></description>
			<content:encoded><![CDATA[<p>I am using <a href="http://www.w3.org/TR/REC-CSS2/selector.html">CSS2 selectors</a> in the style sheet for the new <a href="http://dentedreality.com.au/">Dented Reality</a> website to try and avoid some of the problems in layout/sizing that I was having between <a href="http://www.mozilla.org/">Mozilla</a> (<a href="http://channels.netscape.com/ns/browsers/download.jsp">Netscape</a>), <a href="http://www.opera.com/">Opera</a> and <a href="http://www.microsoft.com/windows/ie/downloads/default.asp">IE6</a>. I haven&#8217;t tested on IE5.x yet, but according to some of the &#8220;css <a href="http://www.tantek.com/CSS/Examples/boxmodelhack.html" title="Tantek Celik's site">hack</a>&#8221; <a href="http://www.glish.com/css/" title="Glish's excellent collection of CSS resources">sites</a> I have been looking at, I will need to include <a href="http://www.glish.com/css/hacks.asp" title="Point number (4) in this list">another hack</a> to make it work on that.</p>
<p>So far, so good.</p>
<p>This whole site is now presented using XHTML and CSS, with no (layout) tables at all. If you <span title="View &gt; Source in Internet Explorer" class="acronym">view the source</span>, you will see that the code is quite clean as well &#8211; I have laid out the source in a manner which makes it more friendly to people using text-only browsers like <a href="http://lynx.browser.org/">Lynx</a>, or to people with no style sheet support in general. I have put the content first, and then worked from there, towards the less-important navigation elements etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2003/07/css2-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

