Archive for July 31st, 2007

DIV height issue on IE

If you need to have a div tag smaller than 20px, then you will find it a bit hard to get on IE. Just add “overflow: hidden” to it’s style and you’re good to go.

I know it’s a quick google find, but there are several methods that you’ll find.
Some are telling you to add a   and set the font-size to 1px, but they all sound “hackish” to me.

I’ve been having several cross-browser related issues lately and all of them have to do with IE (well most of them on Safari, but I’m comparing IE/Firefox) I remember back in the old days when you had to work really hard to get it working on Netscape 4.016.

Is IE becoming the next Netscape?

16 comments July 31st, 2007

Textformat for input boxes

I was having the following issue and I spent a lot of time figuring it out.

I had an Input Text and applied some formatting to it, using target.setTextFormat(format). But the format would only work if the textfield had some text in it.

I tried to “hack” around it and leave some text in it, then apply the textformat then remove the text. But when doing: target.text = “”; The formatting was also removed.

I’ve noticed that for “new text” that the user might input, you need to use: target.setNewTextFormat(format)

That worked like a charm, and all my input texts look like they’re supposed to.
I hope someone finds this useful.

July 31st, 2007


Calendar

July 2007
M T W T F S S
« Jun   Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Posts by Month

Posts by Category