<?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>Antanova Ltd. &#187; CSS</title>
	<atom:link href="http://antanova.com/tags/css/feed" rel="self" type="application/rss+xml" />
	<link>http://antanova.com</link>
	<description>We make excellent websites</description>
	<lastBuildDate>Tue, 30 Mar 2010 09:08:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE6 bullet aligned to bottom of list-item (LI)</title>
		<link>http://antanova.com/blog/css/ie6-bullet-aligned-to-bottom-of-list-item-li</link>
		<comments>http://antanova.com/blog/css/ie6-bullet-aligned-to-bottom-of-list-item-li#comments</comments>
		<pubDate>Thu, 18 Sep 2008 12:43:00 +0000</pubDate>
		<dc:creator>Jason C</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://antanova.wordpress.com/2008/09/18/ie6-bullet-aligned-to-bottom-of-list-item-li/</guid>
		<description><![CDATA[I just thought I’d jot this down for posterity as I’ve seen it before but not often enough for me to remember the solution. Posting this should help that, though.
When using LI in IE6, if the LI has hasLayout activated, then the corresponding bullet will be aligned to the bottom of the item instead of [...]]]></description>
			<content:encoded><![CDATA[<p>I just thought I’d jot this down for posterity as I’<span class="blsp-spelling-error">ve</span> seen it before but not often enough for me to remember the solution. Posting this <span class="blsp-spelling-corrected">should</span> <span class="blsp-spelling-corrected">help</span> that, though.</p>
<p>When using LI in IE6, if the LI has <span class="blsp-spelling-error">hasLayout</span> activated, then the corresponding bullet will be aligned to the <em>bottom</em> of the item instead of the top. Why the <span class="blsp-spelling-error">devs</span> writing IE6 thought that this would be useful I don’t know. Or perhaps, <em>it’s a bug</em>? The shock of it all.</p>
<p>The solution is to target the LI and to disable <span class="blsp-spelling-error">hasLayout</span>. The method I used today was this:</p>
<pre><code><span class="blsp-spelling-error">li</span> {zoom:0;}
</code></pre>
<p>This directly countermands the <code>zoom:1;</code> I had added to other elements to get the page to hang together in IE6.</p>
]]></content:encoded>
			<wfw:commentRss>http://antanova.com/blog/css/ie6-bullet-aligned-to-bottom-of-list-item-li/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>solution #2</title>
		<link>http://antanova.com/blog/css/solution-2</link>
		<comments>http://antanova.com/blog/css/solution-2#comments</comments>
		<pubDate>Wed, 20 Feb 2008 09:55:00 +0000</pubDate>
		<dc:creator>Jason C</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://antanova.wordpress.com/2008/02/20/solution-2/</guid>
		<description><![CDATA[It seems that there is more than one way to skin a cat. Ages ago I wrote about a mad IE duplicating text bug that would repeat bits of content lower down on the page. It had me scratching my head for a little while wondering how IE could be home to yet another bug, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that there is more than one way to skin a cat. Ages ago I wrote about a mad <a href="http://antanova.blogspot.com/2006/03/ie-duplicating-text-bug.html">IE duplicating text bug</a> that would repeat bits of content lower down on the page. It had me scratching my head for a little while wondering how IE could be home to yet another bug, especially one this weird. My old friend Google came to the rescue in the end, showing me a cure.</p>
<p>Now though there appears to be a <a href="http://www.toastedweb.si/docs/ie_ghost_text_bug_fix.html">new and even simpler cure</a>. The problem occurs when you have two floats, and comments between them. The solution I used previously was to remove the comments, but now it appears that another fix is simply to add <code>display:inline</code> to the css rule for the floats. I pretty much do that automatically now, to avoid IE doubling the margin around floats, so it fits right in, and means I can forget about removing comments from my code.</p>
]]></content:encoded>
			<wfw:commentRss>http://antanova.com/blog/css/solution-2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code bits: reset / default stylesheet</title>
		<link>http://antanova.com/blog/code-bits/code-bits-reset-default-stylesheet</link>
		<comments>http://antanova.com/blog/code-bits/code-bits-reset-default-stylesheet#comments</comments>
		<pubDate>Wed, 13 Feb 2008 16:17:00 +0000</pubDate>
		<dc:creator>Jason C</dc:creator>
				<category><![CDATA[Code-bits]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://antanova.wordpress.com/2008/02/13/code-bits-reset-default-stylesheet/</guid>
		<description><![CDATA[Browser inconsistencies are something that drives a sane web developer mad. For example, last week, I was trying to shoehorn a fairly simple-looking design into some html/css code, ready to be dynamicised (yes, I did just write dynamicised. Sorry.) Unfortunately, what happened, as always, was that Safari used a different line-height to everyone else, IE [...]]]></description>
			<content:encoded><![CDATA[<p>Browser inconsistencies are something that drives a sane web developer mad. For example, last week, I was trying to shoehorn a fairly simple-looking design into some html/css code, ready to be dynamicised (yes, I did just write <em>dynamicised</em>. Sorry.) Unfortunately, what happened, as always, was that Safari used a different <code>line-height</code> to everyone else, IE used a different heading size, and Firefox was absolutely perfect, because that’s what I was doing most of my testing with.</p>
<p>I come across this problem all the time, as you can probably imaging, and my solution is to have a base css file that I then modify and extend for every project. Doing that largely eliminates inconsistencies, or at least makes inconsistencies consistent project after project.</p>
<p>Eric Meyer’s ‘CSS reset’ stylesheet has been knocking around for some time, and is a useful resource to use or just to look at and understand why he’s done what he’s done. Anyway, he’s now given it a <a href="http://meyerweb.com/eric/tools/css/reset/">permanent home on his site</a>, so there’s somewhere to check back for updates.</p>
<p><a href="http://meyerweb.com/eric/tools/css/reset/">http://meyerweb.com/eric/tools/css/reset/</a></p>
<p>Here it is in full…</p>
<blockquote>
<pre><code>/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* remember to define focus styles! */
:focus {
  outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
  text-decoration: none;
}
del {
  text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

</code></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://antanova.com/blog/code-bits/code-bits-reset-default-stylesheet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7 width and min-width bug</title>
		<link>http://antanova.com/blog/css/ie7-width-and-min-width-bug</link>
		<comments>http://antanova.com/blog/css/ie7-width-and-min-width-bug#comments</comments>
		<pubDate>Tue, 29 Jan 2008 17:29:00 +0000</pubDate>
		<dc:creator>Jason C</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://antanova.wordpress.com/2008/01/29/ie7-width-and-min-width-bug/</guid>
		<description><![CDATA[After a day of plenty of swearing, I seem to have found something out that I think I should have known about before. I’m posting in the hope it will help out some other hapless web developer and prevent some nasty monitor-forehead interfacing.
For some reason, I know not why, after making a small change to [...]]]></description>
			<content:encoded><![CDATA[<p>After a day of plenty of swearing, I seem to have found something out that I think I should have known about before. I’m posting in the hope it will help out some other hapless web developer and prevent some nasty monitor-forehead interfacing.</p>
<p>For some reason, I know not why, after making a small change to an html page, IE7 stopped picking up some percentage widths (for floated elements). After a lot of swearing, I found out that sometimes, to even pick up a width, IE7 needs <em>both</em> a min-width and width. As I was using percentages that was not a hassle &#8211; so for example the rule</p>
<pre><code>float:left; width: 25.5%;
</code></pre>
<p>was having no effect: the width of the element was shrinking down to the width of its content, while on IE6, Opera, Safari and Firefox everything was fine. Adding a min-width thus</p>
<pre><code>float:left; width:25.5%; min-width:25.5%;
</code></pre>
<p>Sorted everything out. So now everything’s hunky dory. I’m sure most of you will have known about this and I’m quite surprised I haven’t come across it before. That’s part of the joy of the job, I suppose: after the frustration comes the satisfaction of learning something new and solving a problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://antanova.com/blog/css/ie7-width-and-min-width-bug/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
