|
Posted by Chris F.A. Johnson on 11/06/07 23:26
On 2007-11-06, 1001 Webs wrote:
> On Nov 6, 11:20 pm, "Chris F.A. Johnson" <cfajohn...@gmail.com> wrote:
>> On 2007-11-06, 1001 Webs wrote:
>> > On Nov 6, 10:01 pm, "Chris F.A. Johnson" <cfajohn...@gmail.com> wrote:
>> >> On 2007-11-06, 1001 Webs wrote:
>> >> > On Nov 6, 8:50 pm, "Chris F.A. Johnson" <cfajohn...@gmail.com> wrote:
>> >> ...
>> >> >> It is not hard to do the right thing with CSS. It is, perhaps, too
>> >> >> easy to do the wrong thing.
>>
>> >> > That's the problem as I see it too.
>> >> > For example. there are too many options just to assign font-size.
>> >> > Why, in the name of God don't they stick to percentages or whatever?
>> >> > , but c'mmon this is just absurd
>> >> > Or a conspiracy ...
>> >> > BTW, right now I am rewriting my style sheet with font-size: small;
>> >> > etc., but I'm not that sure it will render well I I
>>
>> >> > have copied it from w3.org's front page:
>> >> >http://www.w3.org
>>
>> >> > I can't go wrong that way, right?
>>
>> >> Right, if you use it the way they do, which means not for regular
>> >> text. They use it only for things such as copyright notices and
>> >> legalese.
>>
>> > I have to settle for something.
>>
>> No, you don't.
> Uh?
>
>> > What's your advice?
>>
>> Don't use anything; it's unnecessary.
> Beg your pardon?
Remove ALL font-size specifications. Then add the few (if any) that
are needed to fix up the page.
>> > I tried with percentages and didn't look right, but I wasn't taking
>> > into account inheritance ...
>>
>> URL?
> http://www.1001webs.net
I cannot read it; it is far too small.
> The style sheet comes from a Template supplied by a third party.
I hate to be a third party pooper, but you should find a different
party.
> Problem is that I have to use it for the front end if I want it to
> look exactly the same as the backend (a phpCOIN installation), so that
> it is consistent with the overall look of the site when a customer
> logs in.
Why do you want a consistently unreadable format?
>> > Many people recommends percentages for html/body as a "global" setting
>> > and then using ems from then on.
>>
>> The biggest mistake in CSS is specifying too much.
>
> Then you're going to LOVE this style sheet;
> http://www.1001webs.net/en/styles.css
39,764 bytes for a style sheet? That's bizarre.
There are more than 240 font-family specifications, but there are
only three different specifications.
90% (or more) of the stylesheet is redundant.
After removing all 236 font-size specs, the page is readable and
looks almost good. Removing all 60 instances of 'text-align:
center;' would make the page even better.
--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Navigation:
[Reply to this message]
|