Chris and Daves SharePoint and Tech Blog

All about SharePoint and Technology
  • rss
  • Home
  • About Dave
  • About Chris
  • Links and Resources

Remove the gap between the Icon and Title in SharePoint 2010 document library

Chris McKinley | August 23, 2010

It’s hard to explain what I mean in words so here is a picture:

See how the icons do not sit right next to the title of the item and you are left with masses of white space. This bug only seams to appear in IE8 and in firefox it works just fine. The picture below shows the same thing in Firefox:

This looks much better. I did a bit of digging around using the IE developer tools (just press F12) and tracked down what was causing the error. It’s the CSS width attribute which is set to 0.01% in the coreV4.css My colleague Rob Brown @littlemenace1 (who for a 17 year old knows far too much about far too many things!) assures me that only integers are supported here, so 0.01 is meaningless. IE8 must just get confused and ignore the width attribute all-together whereas Firefox just gets on with things and assumes it’s 1 or 0 but then expands the width to fit the icon and any padding.

Here is the offending CSS:

As we already have a custom masterpage and CSS applied, all I had to do was add

.ms-vb-icon {
    width: 1% !important;
}

into our CSS and all was fine.
If you don’t have a custom CSS and don’t want to make one then I think you could probably get away with doing what I always say you shouldn’t and edit the core CSS. Just watch out for it being overwritten during updates.

While I was at it I also updated the DOCICON.XML and associated images to make the folder icon and a few others more up-to-date. Results below!


Hopefully the CSS will be fixed in an update or service pack in the future.

Comments
3 Comments »
Categories
Sharepoint 2010
Tags
branding, CSS, DocIcon, SharePoint2010
Comments rss Comments rss
Trackback Trackback

Branding your SharePoint 2010 Gateway

Chris McKinley | July 14, 2010

Today I had the pleasure of presenting at the Learning Gateway Conference on the topic of branding.

I’m going to write a few blog posts going into more detail but for now I just wanted to get the slide deck up.

Lg conf branding
View more presentations from crmckinley.
Comments
2 Comments »
Categories
Sharepoint 2010, Sharepoint Designer
Tags
branding, CSS, LGCUK10, master page, Sharepoint Designer, SPD, XSLT
Comments rss Comments rss
Trackback Trackback

SharePoint Products

Sponsor

ShareNews, ShareEvents, ShareIdeas, ShareCV or ShareCoffee
Powered by Postrank

Tags

  • Active Directory Analytics BCS BETT BETT 2010 branding Case Study Central Admin Cognitive Community CSS DHCP DocIcon Drop Folder Evolution Exchange 2007 Exchange 2010 Exchange Service Pack 1 Expression blend FAST Forefront Gmail GodMode Google HyperV IC Technology IE9 iFilter Knowledge base Learning Gateway Conference LGCUK10 Licencing master page MDT Media Streaming Microsoft Migration Mind Manager Monitoring Tools Office 2010 Outlook 2010 Patch Levels pdf PowerPoint PowerPoint 2010 Powershell RDP Revision RTM SCVMM Server 2008 R2 SharePoint Sharepoint 2010 SharePoint Conference Sharepoint Designer SharePoint EDU SharePoint Foundation 2010 SharePoint Saturday SharePoint2010 SharePoint2010; Social SketchFlow SPD SPEDU SPS SPSUK SQL SQL 2008 STSADM SUGUK Supplier TechDays Themes Topologies Twynham Versions VHD Volcano WebApps WebParts Windows 7 Windows Live Windows Update Word 2010 WordPress XML XML-RPC XSLT Zevenseas

Categories

Blogroll

  • Alan Richards
  • Alex Pearce's SharePoint Blog
  • Brandon & George
  • End User SharePoint
  • Get The Point
  • Meet Dux
  • Planet SharePoint
  • SharePoint Comic
  • SharePoint Dev Wiki
  • SharePoint In Education
  • SharePoint Joel
  • The SharePoint Mechanic
  • Top SharePoint Sites
  • We Know Nothing

Ads by Lake Quincy Media

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox