Author Archive
RGBA color
by Mark on Dec.01, 2009, under css
I just read the latest article on 24ways.org about rgba color. Recommended reading. Straight after reading it I had fun implementing rgba background colors on this site. It’s very easy, works great and it’s so much easier to update the colors in css rather than creating a new transparent png!
If you view this site in Internet Explorer you will see that IE is still using the transparent png’s that I was previously using for all browsers. If you view this site in a decent browser like Firefox, Opera, Safari or Chrome you can rest assured that all the transparent png’s are gone
Position fixed – fixed in ie6
by Mark on Aug.12, 2009, under css
See http://subtlegradient.com/articles/2009/07/29/css_position_fixed_for_ie6.html
Its easy and it works
Learning Kohana php framework
by Mark on Jul.18, 2009, under php
An upcoming project required a login functionality but my php skills only go as far as includes and sending forms to email. So I did some searching and came across kohana php framework. I had read some good reviews of kohana and found out that they have an authorisation (login) module…
I tried a few tutorials to learn about kohana but they were too technical for a php n00b like me… then I came across kohana 101. I highly recommend this tutorial if you are a beginner when it comes to php and kohana framework.
The kohana 101 tutorial will walk you through the very basics and will take you about 2 or 3 hours to complete. By the end of the tutorial you will know how to make a simple site in kohana with products, pagination and an email form.
–
You will probably want to remove the index.php from the url’s, this page will tell you how. But it doesnt mention that you also have to edit application/config/config.php
line 23
$config['index_page'] = 'index.php'; to $config['index_page'] = '';
Good Luck
php include causing unwanted gap in web page
by Mark on Apr.18, 2009, under php
So, I was working on a new site and wanted to have the left menu as a standard php include:
<?php include("solutionsMenu.php"); ?>
But, when I loaded the page there was a big gap right above where the include was being rendered. It took me an hour to find out that I had accidentally saved the solutionsMenu.php with a ‘bite order mark’ which was adding a character at the very beginning of the file!
In your text editor you may have the option to set the encoding for the file. Make sure you are saving as UTF-8 not ‘UTF-8 with BOM’. Save the file without a BOM and the problem will disappear
Images in a select box
by Mark on Apr.12, 2009, under xhtml
Can you have images in a drop down select box?
Test 1
This one is a select box with images for options:
code: “<select><option value=”UK”><img src=”images/uk.gif” alt=”UK” /></option></select>”
doesnt work and also failed to validate: (document type does not allow element “img” here)
Test 2
This example uses background colors/images and a bottom border on the options
background images and borders only work in firefox.
Background colors work in IE / firefox / safari / Opera / Chrome
Test 3
This one is a div with images inside like <div id=”divscroller”>
<img src=”/images/uk.gif” alt=”UK” /></div>






I didnt pursue this avenue but I imagine you can use onclick to populate a hidden form field with some value. Could be buggy.
Javascript solution
Some javascript solutions I found but havn’t tried:
Check out dhtmlxCombo
I hope this information was at least slightly informative… please post a comment if you have any suggestions that might help others
Looking for something?
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!
















