David
11th Dec 2003, 11:53 am
I'm always willing to change the way I work if I think it's a good idea. In the past, I always designed my CSS text settings using PX (absolute pixel measurements), largely because all other measurements are specified in pixels. But it seems to me that there are a number of advantages in using EM (accessibility being only one). So, I have now implemented EM through CSS on the Website Architecture site. Try it, Ctrl Scroll away.
The change was not so simple though and simply replacing PX with EM caused havoc (well, it didn't look so good) with some text. However, it turns out that the havoc was caused by bad CSS (my fault!).
One lesson I've learned is that, when working with CSS, it's easy to "fix" a particular non-alignment problem with an extra class and lose sight of where the problem lies. Usually it lies further up the cascade chain. With CSS, you really need to think from the top down and consider all the inheritance from further up the cascade chain. in order to solve immediate problems.
In this respect, Dreamweaver MX 2004 scores brilliantly. The new "Relevant CSS" pane shows all the inherited characteristics for any given object. This pane is now permanently open on my Dreamweaver. It alone was worth the price of the upgrade.
What's interesting about Ctrl Scroll is the way in which the different browsers deal with it. I must admit I was impressed by the way Opera scalled the images to match the text until I realised that Opera didn't even care about CSS. Opera will scale any website using Ctrl Scroll, irrespective of CSS. Strangely, I couldn't get Mozilla to change the text size at all, even after making the relevant settings in Preferences. IE of course, just did what was expected.
I think I've just used my last PX definition for text but I'm not ready to give up tables just yet.
Something about old dogs and new tricks comes to mind... ;)
PS - Just worked out why Mozilla wasn't doing it. My fault again (or is it?). I hadn't set the preferences correctly. My question now is this: Why does Mozilla not enable Ctrl Scroll by default and why are the preference settings not intuitive?
The change was not so simple though and simply replacing PX with EM caused havoc (well, it didn't look so good) with some text. However, it turns out that the havoc was caused by bad CSS (my fault!).
One lesson I've learned is that, when working with CSS, it's easy to "fix" a particular non-alignment problem with an extra class and lose sight of where the problem lies. Usually it lies further up the cascade chain. With CSS, you really need to think from the top down and consider all the inheritance from further up the cascade chain. in order to solve immediate problems.
In this respect, Dreamweaver MX 2004 scores brilliantly. The new "Relevant CSS" pane shows all the inherited characteristics for any given object. This pane is now permanently open on my Dreamweaver. It alone was worth the price of the upgrade.
What's interesting about Ctrl Scroll is the way in which the different browsers deal with it. I must admit I was impressed by the way Opera scalled the images to match the text until I realised that Opera didn't even care about CSS. Opera will scale any website using Ctrl Scroll, irrespective of CSS. Strangely, I couldn't get Mozilla to change the text size at all, even after making the relevant settings in Preferences. IE of course, just did what was expected.
I think I've just used my last PX definition for text but I'm not ready to give up tables just yet.
Something about old dogs and new tricks comes to mind... ;)
PS - Just worked out why Mozilla wasn't doing it. My fault again (or is it?). I hadn't set the preferences correctly. My question now is this: Why does Mozilla not enable Ctrl Scroll by default and why are the preference settings not intuitive?