LauraCowen.co.uk

Laura's view from her world

I’m a bug-fixer!

March3

Today, I finally emailed Tech Wench (who designed the Red Stripes theme of my blog) with the two fixes I made to minor bugs in the PHP and CSS that control the red tabs in the theme. She replied to say ‘thanks’.

My first bug fix…

…I’m practically a developer! ;-)


Originally, when you clicked a tab, the tab appeared to grow. So, in style.css, I replaced the ‘bottom’ padding of the “#menu li.page_item a” style with 10px instead of 20px, which seemed to fix the problem:

 

#menu li.page_item a { float: left; width: 90px;
margin: 0px; padding: 0px 0px 10px 0px;
background-color: #660000; text-decoration: none; }

I also added a ‘maximum depth’ parameter to the wp_list_pages PHP in header.php to prevent sub-pages in the blog being displayed in among the tabs (the sub-page entries kind of hid themselves behind/below the tabs):

<ul id="menu">
< ?php wp_list_pages('title_li=&depth=1'); ?>
</ul>

Both of these seem to work in both Firefox and IE.

tagged with:
posted on 2006-03-03 at 11:03 pm in Blogging, Twittering, etc, Open Source | No Comments »