Tales of an IT Nobody

devbox:~$ iptables -A OUTPUT -j DROP

JQuery UI tip: floated divs inside JQueryUI tabs December 1, 2010

There’s a somewhat confusing problem that can happen if you want to use a multi column (floated div) chunk of content for a tab in JQuery UI tabs.

Basically, the floats inside the tab container cause the tab container to lose it’s height, making your content appear outside of the tab box.

Let us assume our code looks something like this:

The problem is that the floats inside the tab container cause the tab container height to be incorrect (Shown via Firefox)

The solution to this, was to apparently make the tab container float as well, by adding a float:left; width: 100%; to the ‘myTabs‘ div; making the content all appear correct.

End result css:

12 Comments on JQuery UI tip: floated divs inside JQueryUI tabs
Categories: CSS Design php programming

Bullet train crash course for CSS October 5, 2009

One of the best zero-to-hero articles I’ve ever seen starting with basic CSS moving all the way to sprites; worth a look:

http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/

No Comments on Bullet train crash course for CSS
Categories: CSS Design purdy