Is it always bad idea to use inline css for used-once property?

Posted by user93422 on Stack Overflow See other posts from Stack Overflow or by user93422
Published on 2010-05-28T17:16:19Z Indexed on 2010/05/28 19:12 UTC
Read the original article Hit count: 158

Filed under:
|

I have a table, with 10 columns. I want to control the width of each column. Each column is unique, right now I create an external CSS style for each column:

div#my-page table#members th.name-col
{ width: 40px; }

I know there is a best practice to avoid inline style. I do approve using external CSS for anything look'n'feel related: fonts, colors, images. But is it really better to use external CSS in this case?

It does not incur extra maintenance cost.
It is easier to produce.

Cons I can think of:
If you have separate designers and development team - using inline styles will force designers to modify content-file (aspx in my case). It might use more bandwidth.

Anything else I've missed?

© Stack Overflow or respective owner

Related posts about css

Related posts about best-practices