feed RSS Feed RSS


Tag Cloud:
web standards browser Mac internet explorer IE xmas software CSS cascading stylesheet apple xubuntu windows web hosting statistics Santa safari rss reindeers referer php open source linux google funny ftp flash e cards feedburner feed elf ecards e cards cross platform code client christmas articles animated cards


Non-Genuine windows users, download Internet Explorer 7!

Pirates FlagAs a web designer I blamed some months ago about Internet Explorer, the worst browser ever. Version 6 is plenty of defects: very bad CSS interpretation, lack of coherence with web standards, no support for PNG complex transparency, etc…
Internet Explorer 7 seems to have solved some of these issues, but the previous version is still the most wide spread release: this is probably due also to genuine windows copies control the new release performed before installing.
Now Internet Explorer 7 is available as a free update also for irregular windows users, and doesn’t perform WGA (Windows Genuine Advantage) controls any more.
If you really want to use this browser, please, at least upgrade to the latest version! (it is also supposed to be more secure…).

P.S. In case you need a more flexible, easy-to-use, secure, fast, reliable, free browser, I suggest you to try Mozilla Firefox.

Posted on: October 5, 2007 - Tags: General


The importance of !important in CSS

CSS and max-widthIn this article I’ll introduce the declaration !important in CSSs and explain how to use it as a “workaround” to avoid adopting IE proprietary code to obtain the max-width effect in your web pages.

When a CSS propriety is specified twice, the browser will commonly use the last one. Let’s see an example:

#main {
width:600px;
width:800px;
}

In this example the browser will assign width 800 pixels to the #main element.

The declaration !important can be used in cascading style sheets to give priority to some parameters.

#main {
width:600px !important;
width:800px;
}

In the example above the browser will give priority to the first declaration and the #main element will be 600 pixels width.

So, what’s the point?
Internet Explorer 6 and previous versions simply ignore the declaration !important (while IE 7 supports them) therefore we can take advance of this issue to design a “browser-based” CSS.

Let’s consider, for example, the CSS proprieties max-width and min-width: these parameters specify a maximum and minimum width of a web element (such as a table or a DIV container). This is a useful feature which allows to create fluid and dynamic layouts that can be displayed correctly both in low resolutions (e.g. 640×480) and in very high resolutions.
Unfortunately IE 6, among other things, doesn’t even support the max/min width declaration: in order to obtain the same effect under IE6 you can use a proprietary code:

#main {
max-width: 900px;
width:expression(document.body.clientWidth > 900? “900px”: “auto” ); /* IE proprietary code */
}

In this example the #main element will be rendered with a maximum width of 900px both in Firefox, Safari, Opera and Internet Explorer.
Please note that the proprietary code width:expression is not a valid CSS declaration, so if you decide to adopt it, your stylesheet won’t respect web standards and won’t be validated.

However, we can use the !important declaration to avoid non-standard CSS expressions. Here is a “workaround” which allows to use max/min width with smart browsers and specify a fixed width for IE 6 users:

#main {
margin: 0 auto 0;
max-width: 900px;
min-width: 770px;
width:auto !important;
width:800px;
}

In the above example (you can see it in action on this website) the declaration !important is used to specify dynamic width attributes to browsers that support them (e.g. Firefox, Netscape, Opera, Safari and IE 7) while the width is fixed to an average value (800 pixels) for IE 6.
This doesn’t solve completely the matter, but can be considered as a workaround to improve your fluid layout appearance avoiding non-standard code.

Posted on: June 5, 2007 - Tags: Web design


How to install multiple instances of Internet Explorer

Run Internet Explorer 7 side by side with version 6Here is a useful tip for web designers and developers who want to test their website with different versions of Internet Explorer.

As a web designer you’ll have to test your website with multiple browsers in order to check the correct behavior of your pages on different platforms.
Whether you like Internet Explorer or not, you’ll have to carefully test your new pages with this browser, which sucks doesn’t respect many international web standards, but unfortunately is still the most popular among internet surfers.

If you update your copy of Windows XP, IE 6 will be replaced with the new version 7. Anyway you may need also the previous version (which is currently the most wide spread) to test your web pages.

Now there is a simple way to install standalone copies of Internet Explorer!

Just download the multiple IE installer at this page: http://tredosoft.com/Multiple_IE

You’ll be able to easily install old Internet Explorer versions (3, 4.01, 5.01, 5.5 and 6) and run them side by side with IE 7.

The installer currently supports only Win XP and doesn’t work under Vista.

Posted on: May 20, 2007 - Tags: Web design


Next Page »
Privacy Policy and Disclaimer - Contacts

Creative Commons By-Nc-NdExcept where otherwise noted, this site and its content are licensed under a Creative Commons Attribution - NonCommercial - NoDerivs License