Erik Visser wrote:
> Gunlaug Sørtun wrote:
>> table.image_block td .smalltxt {width: 8em!important}
>> 
>> ...will for example work fine on an unaltered markup (with those 
>> inline-styles in place).
>> 
> 
> And i thought !important was a hack for some sort of IE 
> correction..... Obviously never looked into it very well.

You should. !important isn't a hack - it adds the highest level of
specificity to a CSS declaration. This makes my little style-example
override your inline-styles.
The fact that IE6 has bugs so one can use !important for hacking, is
just an unfortunate coincidence.

> Do you see this site as an image-presenting site? It is a camping 
> ground site.

I may visit one day... :-)

No matter what the site is for, you're dealing with loads of pixel-sized
images and other elements in an em-sized layout. That's where your
problems with IE6 started, remember?

> Besides that.
> 
> Ths is not an em-sized layout, or...?

This...

body {width : 60em;}

...makes it an em-sized layout. All those percentage-sized containers
divide up the (em) width of body, making them em-sized too. Simple,
testable, logic, and that's how all browsers handle your layout.

Should at least be a min-width and max-width in there to keep your
layout within reasonable limits. Just because a visitor want twice the
font size, doesn't mean he has twice the window size available.

> I always thought that a percentage based layout. And em based image 
> styling were generally a good idea?

When done well, sure, but you're clearly having problems getting all
pieces in yours to work well together.

Images always look their best at intrinsic sizes. Browsers may be
improving, but they still can't compete with dedicated image-handling
software.

Lots of over-styling too that you should sort out and delete what isn't
doing any good, as superfluous styles have a tendency "to bite" when
you've forgotten why you put them in there in the first place.


So, you should stress-test your layout across browser-land and
browser-options, and decide what's acceptable and what isn't. Since you
can't affect browsers and their options - and how visitors use them,
you'll have to adjust your layout until you're happy with the outcome.
Only you can decide when "enough is enough".

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to