Hi Jack,
Inline styles put layout control into the HTML code. It is easier/faster to
make style changes by modifying an external style sheet, than to slog
through a whole bunch of inline styles in HTML documents and make changes to
them individually. In addition, let's say you wanted to apply the same style
to multiple HTML objects in a document. If you use inline styles, you are
duplicating the style code for that style, and if you need to change it
later, you have to change it in every inline style reference in your HTML.
If you use CSS classes, you can simply assign the same class to multiple
objects, and when you need to make a change, you change it in one place (the
external style sheet). It's much the same as the idea that when you see the
same code duplicated in your CodeBehind, or in another class, it is better
to declare a function, and simply call that function when you need its
functionality. That way, when you need to make a change, you only change the
one function, instead of having to slog through all your code, find the
duplicated code, and change every instance of it.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.