Hey ya all here i am drinking my beer thinking in boredom about my uber hacktic at the office when i realized, let me quick hint the web developers / designers who are working with css. We all know there is one pain in the ass if you have been doing all your css and FINALY after all of that hard work its time .. Alright lads lets take it to IE6 and see how it works out. Most of the time that is where disaster strikes for me and team. What i always do when divs and such are out of sync on the screen is giving the divs a background color. Last week when this happened again i was happily surprised that that site i was making was using my javascript framework.
For this framework i have been making a small function that marks a div red just plain simple, so let me share this code with you..
-
<script type="text/javascript"><!--
-
var oRed = Object.extend ($('bugged'), {
-
makered: function () { this.style.backgroundColor = 'red'; }
-
}).makered();
-
// --></script>
This is very easy isn't it .. Its just basic usage of the prototype framework but for the critics among is yes ithere is a more easy way. But sometimes when you have been in the office all day your eyes whant something as well. Okay here is the easy way
-
<script type="text/javasript"><!--
-
$('bugged').style.backgroundColor = 'red';
-
// --></script>
So when ever you have problems with positioning divs (you know position relative / absolute stuff) mark your stuff and you will get to your goal quickly. Alright my beer is almost gone time for an other beer run so im heading off. PS feel free to respond i am all open and all ears.
Dont forget to leave a comment

