Skip to: Site menu | Main content
In web development and programming, I often come across useful tidbits that solve a problem for me. I often have those problems again and can't remember that tidbit. Now I will. Maybe you can benefit too.
As part of a recent request to customize the header of a SharePoint (MOSS 2007) site, I ran into a little problem when trying to dynamically replace a stylesheet using Javascript. The page had two stylesheets loading, one core stylesheet and one theme stylesheet, in that order. I was trying to replace the core stylesheet with an altered version for certain parts of the site, however when I did it was as if the theme stylesheet was being overwritten too. The problem was in how IE handles the DOM and Stylesheets (this was not a problem in Firefox).
I noticed recently that in IE a fieldset on one of my sites was showing these odd extra "goal post" kinda lines at the top on the left and right. Basically like the left and right border were extending to the top of the block. At first I thought it was due to the background image and/or position of the fieldset, as removing the image fixed the problem. Turns out it was the padding on the fieldset.
- DevGuru - Transact-SQL Reference - Google - More Helpful Links
.NET | AJAX | Apache | ASP.NET | Browsers | C# | CSS | IIS | InfoPath | JavaScript | MS SQL | MySQL | PHP | Search | Security | SharePoint | VB.NET
User: Pass: