[UPHPU] More CSS frustration
Daniel C.
dcrookston at gmail.com
Wed Jan 17 09:18:08 MST 2007
On 1/17/07, Wade Preston Shearer <lists at wadeshearer.com> wrote:
> It's not appropriate within an inline style though, no?
No, it's not appropriate (though probably not damaging) in an inline
style. The above HTML would work just as well, and probably better,
without all the # signs.
Even better would be to pull all of the CSS out into a separate
document, or a separate part of the document, and define it in terms
of id's and classes. You would then assign each div to an id or
class:
<div id="foo">
<div class="bar">
and the div will then "receive"* the styles defined in the CSS
elsewhere. That way you can edit your CSS in one place, one time, and
every div associated with that class or id will change along with it.
By defining your CSS inline, you lose the ability to change multiple
tags with a single rule.
Dan
More information about the UPHPU
mailing list