CSS Tip of the day – Cross browser minimum height


.element
{
    min-height:600px;
    height:auto !important;
    height:600px;
}

Advertisements

Target IE6 and IE7 with only 1 extra character in your CSS


#elementId
{
text-align:left; /* all normal browsers */
text-align:center; /* notice the * before the property – understood by IE7 and below */
text-align:center; /* notice the _ before the property – understood by IE6 and below */
}

Fucking sweet ! Take that IE6 and your non understanding of margin: auto !

SharePoint Best Practice – Querystring parameters you should not use in your SharePoint application


When creating the SPContext object SharePoint evaluates the following query string parameters if provided:

  •     ContentTypeId
  •     Contents
  •     FeatureId
  •     FolderCTID  
  •     ID
  •     ListTemplate
  •     List
  •     Mode
  •     RootFolder
  •     Type
  •     VersionNo
  •     View

To ensure that the creation of the SPContext object does not fail your application should ensure that your query string parameters are different from those listed above.