|
|
|
|
|
by null_ptr
5526 days ago
|
|
<div id="site">
<div id="left">Fixed left column.</div>
<div id="middle">Liquid center column</div>
<div id="right">Fixed right column.</div>
</div>
The whole point of CSS is to take things like width="200px" out of the markup. |
|
I don't see how that's really an improvement in this particular case. In fact, I would say that using 'width="200px"' inline may actually be more readily understandable and maintainable than having the style defined somewhere else and then used only once. (I'm assuming that the 'width="200px"' is not duplicated multiple times in the PHP/Python/Arc/etc code that generates the HTML page. If the same style needs to be identified multiple times in the source code, then of course it may be a better idea to define it once and thereafter refer to it by name.) Are there any practical benefits that I may be missing?