in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Another Hack's SharePoint Experiences

I've been playing with SharePoint for a few years now. Every now and again I'll post something that I found interesting about SharePoint or computing in general.

Microsoft and the CSS demons

Like I've mentioned before, I've customized a lot of my sharepoint site by changing the style sheet and backend standard graphics.  Unfortunately, the limitation is that you have to rely on Microsoft  to properly assign stylesheet classes properly to all the elements. For reference, here's a link to a screen shot of my page, since the gallery still won't work.

My latest issue was that a user suggested the colors in the list view nav bar change from the default blue to white.  I didn't have a problem with this one bit - I viewed the source of the list page, found the link, and saw that it belonged to class ms-toolbar (fairly intuitive, huh?).  So I opened the style sheet (Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033\STYLES - default location) and changed the sheet to have color: #FFFFFF;.  Problem solved.

However, someone coding the web part had a brain fart, because any links within the web part are assigned the same class.  However, the background at this point is also white, so you get invisible text.  I didn't even realize that until I got another complaint not 5 minutes later.  Unfortunately, this wasn't a case of a higher level tag being assigned the ms-toolbar class: it was the a tag itself.  Now, will someone please explain why your class would be called ms-toolbar, and you'd have something in the main content window be assigned to the ms-toolbar class?  It didn't and still doesn't compute for me.

So, if anyone out there has any ideas for how to work around this, I'd love to hear them.  Right now, I just changed the color of ms-toolbar to #990000 so that you can see it in both places.  It's still hard to see against my orange background, though.  Shoot me a line if you have any ideas.

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts