XprsYrslf @ Twitter
 

Archive for August 2009


XHTML to HTML plugin for WordPress

August 20th, 2009

In setting up WordPress for the use of this website, I noticed it was fully written in XHTML, while some browsers don’t support the ‘application/XHTML+XML’ MIME type, so they get it served as ‘text/html’.  So, before I get too technical, I just wanted to display the website as HTML (4.01 Strict).

Fortunately, there was a simple plugin that solved this quickly:  XHTML to XML plugin. You can find more about the above issues on that page. For use in this website, I added 2 lines of my own, to turn onclick=”this.target=’something’”  in  onclick=”this.target=’something’”.

<?php
  ...
  $xhtml[5] = '/target="([_A-Za-z]+)"/';
  ...
  $html[5] = 'onclick="this.target=\'$1\'"';
  ...
?>

Thanks and credits go to John Kilroy.

 

IE8 display: table-cell & max-width bug

August 18th, 2009

A few days ago, a bug in EasySell appeared in Internet Explorer 8.

Fault Version

Apparently we used max-width (and max-height) on the image in a table ‘td’:

table td img {
max-height: 255px;
max-width: 345px;
}

This piece of code won’t get applied by IE8, so it seems…
But google found the solution right here, thanks to the forum user AsraiLight.
To let IE8 apply the max-width/max-height, you have to use a fixed table layout:

table{
table-layout: fixed;
}

This made it look like it is supposed to:

Correct Version

 

The Big Ask Again

August 17th, 2009

The Big Ask Again, Act Now!