<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How can I fix my weirdly rendering navigation tabs?</title>
	<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs/</link>
	<description>Comments on Ask MetaFilter post How can I fix my weirdly rendering navigation tabs?</description>
	<pubDate>Thu, 10 Jul 2008 19:27:26 -0800</pubDate>
	<lastBuildDate>Thu, 10 Jul 2008 19:27:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I fix my weirdly rendering navigation tabs?</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs</link>	
		<description>What&apos;s wrong with my CSS that makes top the nav render like &lt;a href=&quot;http://api.browsershots.org/png/original/bb/bb6f759abef706978f314c83695f495e.png&quot;&gt;this&lt;/a&gt; or &lt;a href=&quot;http://api.browsershots.org/png/original/ec/ec5a610dc02ac24e300af9b25cdd51f6.png&quot;&gt;this&lt;/a&gt; on some browsers, and how can I fix it? &lt;br /&gt;&lt;br /&gt; &lt;a href=&quot;http://api.browsershots.org/png/original/1f/1fe501c007f70cdaa4b70839965b57a6.png&quot;&gt;This&lt;/a&gt; is an example of a desired rendering, and &lt;a href=&quot;http://www.electicker2008.com/main.css&quot;&gt;here&apos;s&lt;/a&gt; is the CSS. Thanks in advance, guys &amp;amp; gals!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.96287</guid>
		<pubDate>Thu, 10 Jul 2008 18:30:19 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
		
			<category>webdesign</category>
		
			<category>css</category>
		
			<category>nav</category>
		
			<category>navigation</category>
		
			<category>tab</category>
		
			<category>tabs</category>
		
			<category>browser</category>
		
			<category>browsers</category>
		
			<category>web</category>
		
			<category>design</category>
		
			<category>html</category>
		
			<category>div</category>
		
	</item> <item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404545</link>	
		<description>Don&apos;t use display:inline on the tabs, use display:block and give it a fixed width, then float: left.  Just make sure you clear the float at the end.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404545</guid>
		<pubDate>Thu, 10 Jul 2008 19:27:26 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404546</link>	
		<description>Didn&apos;t see the right tabs.  For the right tabs, wrap the whole thing in a DIV container, set overflow: hidden, give it a width (anything, even 100% will be fine) then float the tabs on the right... well, to the right.  Again, display:block and fixed widths.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404546</guid>
		<pubDate>Thu, 10 Jul 2008 19:29:33 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404548</link>	
		<description>Additionally, instead of using padding to give the text some &quot;room&quot; inside the tab, I&apos;d personally use line-height (which has the added advantage of working nicely on display:inline elements).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404548</guid>
		<pubDate>Thu, 10 Jul 2008 19:31:39 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404891</link>	
		<description>Thanks C_D, I&apos;ll give that a try tonight.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404891</guid>
		<pubDate>Fri, 11 Jul 2008 06:34:11 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404893</link>	
		<description>Just a few follow-up questions:&lt;br&gt;
&lt;br&gt;
&lt;em&gt;the whole thing&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
You mean both the left and right tab groups in one div?&lt;br&gt;
&lt;br&gt;
And&lt;br&gt;
&lt;br&gt;
&lt;em&gt;Just make sure you clear the float at the end.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
How do I do this - what clear value and on which side do I do this? Once full stop or one each for both tab groups?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404893</guid>
		<pubDate>Fri, 11 Jul 2008 06:37:59 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: kirkaracha</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404916</link>	
		<description>Make the nav div the full width of the column, and float it. It won&apos;t go anywhere, but it will clear any floats inside it and expand to accommodate the contents. &lt;a href=&quot;http://www.magneato.com/demos/floaty/&quot;&gt;See example.&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Tip: use &lt;code&gt;text-transform: uppercase&lt;/code&gt; to capitalize the menu items fort better accessibility.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404916</guid>
		<pubDate>Fri, 11 Jul 2008 07:00:18 -0800</pubDate>
		<dc:creator>kirkaracha</dc:creator>
	</item><item>
		<title>By: adamrice</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1404947</link>	
		<description>&lt;i&gt;You mean both the left and right tab groups in one div?&lt;/i&gt;&lt;br&gt;
PMJIH, but I think he means just the right-hand group.&lt;br&gt;
&lt;br&gt;
&lt;i&gt;How do I do this - what clear value and on which side do I do this? Once full stop or one each for both tab groups?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
There are a few ways to deal with the right and left banks of tabs One is to wrap each one and float one div to the right, one left. If you do this, the next element after the right-floated div needs a rule for it including the style &apos;clear: both;&apos;. Alternately, instead of floating, you could wrap both these left and right divs in a larger &quot;navbar&quot; div, give the navbar div &apos;position: relative;&apos; and give the left and right divs something like &apos;position: absolute; left: 0;&apos; (or &apos;right: 0;&apos; as appropriate)&lt;br&gt;
&lt;br&gt;
Another would be to treat them all as a single group, but with a giant spacer before the &quot;mobile&quot; tab.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1404947</guid>
		<pubDate>Fri, 11 Jul 2008 07:22:35 -0800</pubDate>
		<dc:creator>adamrice</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1405789</link>	
		<description>Thanks everyone. Wow, &lt;strong&gt;kirkaracha&lt;/strong&gt;, you really went the extra mile with that one. Thanks!&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;adamrice&lt;/strong&gt;: &lt;em&gt;Alternately, instead of floating, you could wrap both these left and right divs in a larger &quot;navbar&quot; div, give the navbar div &apos;position: relative;&apos; and give the left and right divs something like &apos;position: absolute; left: 0;&apos; (or &apos;right: 0;&apos; as appropriate)&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
I tried this one, and cautious preliminary results from tests in person and Browsershots seem to indicate this might work, at least as a compromise (note that aside from the &apos;nostats&apos; file linked above, no other pages have the new css implemented yet.&lt;br&gt;
&lt;br&gt;
Short of asking for a unicorn, can anyone take a look and see if it looks alright now?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1405789</guid>
		<pubDate>Fri, 11 Jul 2008 19:12:57 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1405794</link>	
		<description>Ouch, but then there&apos;s &lt;a href=&quot;https://browsershots.org/screenshots/fe2b27e7403e5bf6e5f9ec19492d9317/&quot;&gt;this&lt;/a&gt;. How do I fix the gap between the tabs and the content div?&lt;br&gt;
&lt;br&gt;
I should mention, the working files are now &lt;a href=&quot;http://www.electicker2008.com/index-working.html&quot;&gt;index-working.html&lt;/a&gt; and &lt;a href=&quot;http://www.electicker2008.com/main-working.css&quot;&gt;main-working.css&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1405794</guid>
		<pubDate>Fri, 11 Jul 2008 19:16:55 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1405798</link>	
		<description>Ah, I see it renders &lt;a href=&quot;https://browsershots.org/screenshots/77efb3c98f819ccdbe5c04d7fcd5eab1/&quot;&gt;as desired&lt;/a&gt; on Mac OS X / Safari 4. The shot in the previous comment is an earlier version of Safari. Should I seek to fix this or leave it as is?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1405798</guid>
		<pubDate>Fri, 11 Jul 2008 19:20:02 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: adamrice</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1405893</link>	
		<description>I see that you&apos;ve got &amp;lt;center&amp;gt; tags in there, which seem to be a confounding factor (and are unnecessary). I think Safari may be spacing out on that. And it doesn&apos;t look right in Safari 3 (the current version), at least to me.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1405893</guid>
		<pubDate>Fri, 11 Jul 2008 21:07:03 -0800</pubDate>
		<dc:creator>adamrice</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1406199</link>	
		<description>Sorry, forgot to follow up.&lt;br&gt;
&lt;br&gt;
The easiest way to get two things to float to the right and left sides of a container is &lt;a href=&quot;http://www.quirksmode.org/css/clearing.html&quot;&gt;explained much better here.&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
But it looks like you&apos;ve got everything looking good &lt;small&gt;at least, in the only browser that matters... ;)&lt;/small&gt; If you find there&apos;s a gap between the tabs and the content on certain browsers, you&apos;ll have to target the browser using &lt;a href=&quot;http://centricle.com/ref/css/filters/&quot;&gt;a hack&lt;/a&gt;, then tweak the position of the tabs using whatever technique you prefer.  If the container for the tabs is &lt;i&gt;position:relative&lt;/i&gt; (as suggested above), you can adjust the vertical position by using the &lt;i&gt;top&lt;/i&gt; or &lt;i&gt;bottom&lt;/i&gt; css attributes.&lt;br&gt;
&lt;br&gt;
Personally, I don&apos;t see any reason to do this.  If you&apos;ve coded everything correctly, there shouldn&apos;t be any breaks between the tabs and the page elements for any browser.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1406199</guid>
		<pubDate>Sat, 12 Jul 2008 07:25:28 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1406303</link>	
		<description>Oh, I see Safari 4 is not yet a release version. &lt;br&gt;
&lt;br&gt;
Thanks again, C_D. So, failing a hack, any ideas as to what I can do to code it in order to prevent the gap? The padding on the tabs still varies annoyingly between Win/IE and Win/FF and I can&apos;t quite find a compromise, so I suspect I&apos;m still doing &lt;em&gt;something&lt;/em&gt; wrong.&lt;br&gt;
&lt;br&gt;
Thanks for your help so far, guys, it&apos;s very much appreciated.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1406303</guid>
		<pubDate>Sat, 12 Jul 2008 09:33:09 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1406402</link>	
		<description>OK, try this:&lt;pre&gt;div.alltabs {&lt;br&gt;
  display:block;&lt;br&gt;
  float:left;&lt;br&gt;
  padding: 0;&lt;br&gt;
  border: 1px solid #fff;&lt;br&gt;
  margin-right:7px;&lt;br&gt;
  height: 16px; &lt;b&gt;//adjust to fit your image&lt;/b&gt;&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
div.activetab {&lt;br&gt;
  background: #fff;&lt;br&gt;
}&lt;/pre&gt;Now change the class declaration for the tabs to use the attributes properly:&lt;br&gt;
&lt;br&gt;
&amp;lt;div class=&quot;alltabs&quot;&amp;gt; ...for the regular tabs&lt;br&gt;
&amp;lt;div class=&quot;alltabs activetab&quot;&amp;gt; ...for the active tab (two class defs separated with a space)&lt;br&gt;
&lt;br&gt;
Modify the images you&apos;re using to give them the appropriate padding.  &lt;b&gt;Do not&lt;/b&gt; use padding on the tabs.  Padding is where everything goes wrong, cross-browser.  Just set the padding to 0 and make the images a little wider/taller.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1406402</guid>
		<pubDate>Sat, 12 Jul 2008 11:07:28 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/96287/How-can-I-fix-my-weirdly-rendering-navigation-tabs#1409927</link>	
		<description>Seems to work okay. Thanks again for your help, everybody.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.96287-1409927</guid>
		<pubDate>Tue, 15 Jul 2008 19:24:29 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item>
	</channel>
</rss>
