[Javascript] separating structure, style, and behavior
Hakan Magnusson
hakan at backbase.com
Fri May 7 10:07:16 CDT 2004
Margin is the spacing between other elements and your elements' border
(outside spacing). Padding is the spacing between your elements' border
and its content (inside spacing).
There's a nice picture on MSDN illustrating all of this, if I remember
correctly, but I don't use MSDN so I wouldn't know where to find it. I
know that some fellow members of this mailing list do, and I'm guessing
they are already half way to sending it. :)
But as liorean mentioned, this is really off topic, you should address
the CSS mailing list if you have further questions.
Regards,
H
Terry Riegel wrote:
> Thanks,
>
> Could it be written
> #localnav td p, td a:link, a:visited {stuff here...}
>
>
> What is the difference between these two?
>
> margin-left: 10;
> padding-left: 10;
>
>
> Terry Riegel
> -----------------
> MAILKEY: 2524427349
>
>
>
>
> On May 7, 2004, at 10:51 AM, Hakan Magnusson wrote:
>
> It means:
>
> #localnav td p (AND)
> #localnav td a:link (AND)
> #localnav td a:visited (should all have this style)
>
> It's simple grouping.
>
> Regards,
> H
>
> Terry Riegel wrote:
>
> Can anyone explain this to me.
> #localnav td p,
> #localnav td a:link,
> #localnav td a:visited {padding-right: 10px; display: block;
> color: #000000; text-decoration: none;}
> #localnav {background-color: #ffffff;}
> What does the comma after p and after link mean?
> Terry
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list