Posts Tagged ‘css’

Trilobita Wordpress Theme

We’ve created our own Wordpress theme, it’s the one we use for this blog. It is a three column flexible layout based on the Jello layout model. This means that you get a fluid layout, but one that has a minimum and maximum width set. Yep your site will not go below a certain width or expand beyond your max width. Try it, the default setting is that this layout will not go below 700px or above 1000px. These values can be edited to suit your needs, as can the amount of fluidity.

It also uses JQuery for corners and the lavalamp menu.

It is XHTML 1.0 Strict and CSS compliant.

Our Theme

Our Theme

Grab the relevant file below:-

Rounded Corners with JQuery

As with most things Jquery has simplified and improved the process.

For rounded corners just use the jquery plugin jquery.corner.js

and in your code:-

$('#id1, #id2 ul ').corner();

and that’s it!

Scroll bars, CSS and IE/Firefox

In IE the scroll bar gets placed inside the element that requires the scroll. In firefox the scrollbar is placed outside said element. Bizarrely it seems that IE is the compliant browser on this issue. Anyway to fix the problem of your scroll bars covering your content you can add the following conditional css to your files.

#divid1 is the element that has overflow: auto; defined.

<!--[if IE]>
<mce:style type="text/css"><! 
 #divid1{padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 20 : 5);}
-->
 
<!--[endif]-->