Richard Dudley

Pencil Bros. Geology, Inc. "We Deliver" Quality Assured * Satisfaction Guaranteed

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Pittsburgh Dot Net

Crystal Reports .NET

Subscriptions

Post Categories

Article Categories



Hey MS - Follow Your Own Coding Guidelines, Part II

source of complaint: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskcontrollingtheappearanceofthewebinterface.asp

Bullet point 1 states:

Never use Cascading StyleSheet (CSS) properties for absolute positions.  Specifying absolute positions prevents elements from being automatically positioned and sized.
<!-- Do not do this -->
<DIV id = idFindWhatLabel style = "position: absolute; left: 0.98em; top: 1.2168em; width: 4.8em; ... >

And yet, here's part of the sample code for Bullet Point 2, using that thing they just told you not to use:

<div style='position:absolute; left: 0; top: 0; ...

Additionally, nice consistent use of quotes to surround attributes.

Also, it would be really cool if you'd either allow the frame to scroll, or wrap long lines of code.  I might want to see the entire line!

posted on Wednesday, July 07, 2004 8:45 AM by richard.dudley





Powered by Dot Net Junkies, by Telligent Systems