"Janko at Warp Speed" has a great article that demonstrates how to create an ASP.NET user control that supports different message types and how to style them using CSS. It also explains how to style ValidationSummary similarly. It's a very nice CSS example.
Read the entire post