W3C home > Mailing lists > Public > www-style@w3.org > June 2004

Re: width:120%

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 10 Jun 2004 16:19:24 -0700
Message-ID: <006901c44f41$5f1c3850$0301a8c0@AFedoniouk>
To: "David Dorward" <david@dorward.me.uk>
Cc: <www-style@w3.org>

Thanks, David!

Your example is really interesting.

But still wondering... 120% is not absolutely neccessary in your code
li { width: 120%; }
is exactly
li { width: 3.6em; } /* 3em of parent * 120% = 3.6 em */

I mean that 120% from non percent value is always known and can be
calculated manually up front.
120% width from percentable container width really makes sence but is it
practically useful?

Does anybody seen width:120% (any number greater than 100%) in real life?

Andrew Fedoniouk.


>
> Well, it can look cute:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>    "http://www.w3.org/TR/html4/strict.dtd">
> <title>Width 120% is cute</title>
> <style type="text/css">
>
> ul {
>   margin: 0;
>   padding: 5px;
>   width: 3em;
>   border: dotted black 1px;
>   overflow: visible;
>   list-style-type: none;
>   background-color: white;
>   color: black;
> }
>
> li {
>   margin: 5px;
>   padding: 5px;
>   width: 120%;
>   border: dotted black 1px;
>   background-color: white;
>   color: black;
> }
>
> </style>
>
> <h1>Width 120% is cute</h1>
>
> <ul>
> <li>Hello
> <li>Wibble
> <li>Foo
> <li>Bar
> <li>Baz
> </ul>
>
> -- 
> David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
>
Received on Thursday, 10 June 2004 19:19:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT