Attention all those using LuxDark .Text Skin – messy source HTML for the POST DIV
11 November 2004All those who are using the LUXDARK .Text theme (as I am) should note that the source code has a class attribute that can cause things to look fooie when a width attribute is added to the POST DIV.
Checking your source code (by viewing source) will prove it to you… Search for
DIV class=post style=”FILTER: progid:DXImageTransform.Microsoft.Shadow(color=’Blue’, Direction=135, Strength=32)”>
I have added the following code into the News/Announcements part of .Text Admin for my blog which seems to do the job once the page has loaded.
window.onload = function(){
var fixPostDivs = document.getElementsByTagName(“DIV”)
for (var a = 0; a < fixPostDivs.length; a++)
{
if (fixPostDivs[a].className==’post’)
{
fixPostDivs[a].style.filter= ”;
}
}
};
var fixPostDivs = document.getElementsByTagName(“DIV”)
for (var a = 0; a < fixPostDivs.length; a++)
{
if (fixPostDivs[a].className==’post’)
{
fixPostDivs[a].style.filter= ”;
}
}
};