Tag Archives: DOCTYPE

SharePoint 2007 Design Tip: Gantt View with custom master pages

I recently discovered that your custom master page may affect the Gantt view of a SharePoint list.  I have seen the colored task bars extend past the framed container of the chart when a custom master page and CSS is applied to the site.  If this happens to you, you can try the following:

  • Systematically strip out the CSS and HTML to identify what code is causing the problem. Be sure to make backups of your files first.
  • Adjust the DOCTYPE tag that you are using. When this happened to me, I had to go way back and use the following DOCTYPE to get the Gantt view to show correctly:  <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>

And finally, add this on to your list of items to test while developing custom master pages for SharePoint!

DOCTYPES and SharePoint

I got asked by two separate friends of mine just within a few days of each other if I had any recommendations for what DOCTYPE tag should be used in SharePoint.  Honestly up until that point, I had not put a lot of thought into outside of the attitude of look up whatever A List Apart recommends and use that.   So I delved into it a bit more and now I do have an opinion on the matter. Continue reading DOCTYPES and SharePoint

All Day Event Width Display Fix for Master Pages Using DOCTYPE

If you specify a HTML 4.0 DOCTYPE tag in your master page, the Calendar control will present a couple of issues. First, Appointments in Week View that are longer than a 1/2 hour block, will not expand down to fill the appointment area. Second, the All Day Event marker in Month View will push past the right border. Continue reading All Day Event Width Display Fix for Master Pages Using DOCTYPE

The DOCTYPE tag and SharePoint Master Pages

I came across a new issue this week.  All of my custom master pages that I have done (including the base code I provide here) include a DOCTYPE tag that references the latest HTML specifications (<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>).  Unfortunately, the master page file used by default for SharePoint (default.master) does not specify a DOCTYPE tag at all.   So when the browser page renders the code, it reverts to quirks mode, which renders the HTML according to old rules. Continue reading The DOCTYPE tag and SharePoint Master Pages