Categories: "Full Stack Dev & Design"
Internet Explorer 6 for windows has been giving me a hard time with expanding fixed width or fixed height boxes (divs) in the most non standard fashion...
The trick would be to apply
overflow: hidden to the div to force the browser to hide any excessive content (text, images) instead of expanding the container. But IE6 will not always do as told... :(
I found out today that the trick with IE, is to apply a fixed
height property to the same container (div) as the
overflow property, and then, IE will always crop the contents as expected.
Note: you can specify widths and heights in
% (not just
px). So it's only "fixed" in a relative manner.
PS: In some cases, you may want to consider the non standard IE CSS property
word-wrap: break-word; This will break words too long to fit into the fixed width. IE only and non standard...
Here's a quick list of the Firefox extensions I'm using all the time for web development:
- DOM Inspector
- IE View (One button to check the same page in IE)
- ColorZilla (Lets you check colors on a web page)
- MeasureIt (Lets you measure Elements on a web page)
- URL Link (Follow a link even if it's not clickable)
- Yet Another Window Resizer
"A sure sign of my descent into senility is bitchin' and moanin' about "kids these days," and how they won't or can't do anything hard any more."
So goes the intro to Joel's "The Perils of JavaSchools".
Higly relevant and highly recommended, as usual! ;)
"Pointers and recursion require a certain ability to reason, to think in abstractions, and, most importantly, to view a problem at several levels of abstraction simultaneously. And thus, the ability to understand pointers and recursion is directly correlated with the ability to be a great programmer.
You need training to think of things at multiple levels of abstraction simultaneously, and that kind of thinking is exactly what you need to design great software architecture."
Among other things, Joel talks about how Universities made the mistake of replacing courses on C pointers and recursion with courses on simple Java... and those universities include UPenn... my second most enjoyable experience in the 90ies (the most enjoyable one being the bubble of course! ;D)
Also, Joel talks about how it gets difficult to distinguish the top programmers from the average because you can't ask them about pointers & recursion right out of school any longer... I've got the same issue with database programmers. You can't ask them about concurrent transactions and normalizing databases any longer... Ironically, I learnt most of that at UPenn... back then in the 90ies... :>>
At the PHP Forum in Paris this year, Rasmus Lerdorf (the creator of PHP) wittily explained that SOAP was "intrinsically broken" because it's too complex... "just as anything that takes more than 20 minutes to understand".
I liked the way he put that! ;)
When it comes to webservices, I myself tend to prefer XML-RPC (which goes by the motto: "Does distributed computing have to be any harder than this? I don't think so.")... Sometimes, I also wonder if REST would be a nice alternative...
There's one thing I was wondering about: why would you actually want to use the DOM/XML writing functions of PHP to generate XML? I mean: we've been generating HTML without specific functions for over 10 years, so why would we need a library to build a DOM tree instead of outputting XML directly??
Well... I got an answer at PHP Forum: it makes sure your XML is well formed when you spit it out!
Ha! I could have thought about that!
Now I'm wondering if I should be using this as a replacement for echo in order to make sure I generate well formed XHTML all the time... ;) I mean... generating a DOM tree would be overkill, but generating the XHTML code on the fly with XMLwriter might actually work out pretty well...