void(0) problems in IE6

If you need to use void(0) in some situations so that you will not be thrown to the top of the window, you need to know that void(0) doesn’t work in Internet Explorer 6! This type of problem can be avoided by using another javascript property, just write return false; in the onclick property.

Something like this:

<a href="#" onclick="yourFunction(); return false;">Link</a>
No Comments
September 9, 2009 in Hacks for IE
Tagged ,

IE6 – How to make a 5px height div

Internet Explorer 6 sets the minimum height for a div 10px or so, the problem is what can you do if you want a 5px div?

Well, it’s not very hard, this can be done with a small css trick. You include

line-height: 5px;

property and that’s it, problem fixed ;)

1 Comment
May 15, 2009 in CSS for web designers, Hacks for IE
Tagged , ,

IE7 BUG – Background Image

It seams that you can not set a background(image/color) to a <tr> tag in a table. This issue is the same in IE6.

P.S. Problem fixed in IE8, Thank God!

2 Comments
May 6, 2009 in Hacks for IE