I agree. I have to write some styles on the fly i.e. <div  
style="border: 1px soilid red"></div>  and shorthand comes in very  
useful. However I only know a few so anyone with a useful to all of  
the ones available would be really appreciated.
<div style="background: url(img/pic.png) no-repeat top right;".

As for the three value, I can get my head around it but just doesn't  
seem visually balanced in the code to leave one out, even if it's not  
needed.

chris


On 29/09/2009, at 12:07 AM, Bobby Jack wrote:

> --- On Mon, 9/28/09, tedd <[email protected]> wrote:
>
>> <opinion>
>> I find reading other code (as well as mine later) much
>> easier if longhand elements are used. After 40+ years of programming
>> I can say the less cryptic the code, the better it is. This is
>> because of self-documentation -- in short, documentation matters.
>> </opinion>
>
> Hi tedd,
>
> Interesting. To be honest, I find:
>
> margin: 10px 20px;
>
> far quicker to read, understand, and visualise than:
>
> margin-top: 10px;
> margin-right: 20px;
> margin-bottom: 10px;
> margin-left: 20px;
>
> so what you say definitely holds for some of the time, but doesn't  
> hold the rest of the time. I don't know quite what we should  
> conclude from that though :)
>
> I remember I found the shorthand - particularly the 3-value version  
> - annoying at first, but it now seems like second nature.
>
> I'd draw the analogy with the ternary operator in c-like languages.  
> It's pretty confusing for beginners to understand but much more  
> readable for those who are familiar with it.
>
> - Bobby
> ______________________________________________________________________
> 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/
>

______________________________________________________________________
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