When working with asp2, CSS is a must. Actually, when working with any web site project, CSS is a must. This I understand and am totally cool with.... UNTIL it gets to testing CSS in multiple browsers.
Time and Time again, I create a nice layout in IE (the default browser for VS'05) and try to run it in FF and there are problems. My latest problem is with the "em" which is used for text sizing (I believe it acts like a percentage... ie font-size: 1.2em is 120 percent of the normal text size).
Basically, what was happening was that some text in IE was showing bigger than text in FF. Why? I don't have a clue. I did some rough checking in the CSS files, however didn't find anything that strikes me as wrong. Before I go any further though, I must admit, I'm not a CSS guru therefore somewhere in my ".css" may be some ".foolishness", I accept that...
Now... On to the remedy or, "tip".. If you've been getting this problem or one similar to it, I suggest you LEARN CSS PROPERLY ... In the event that you're like me though and couldn't be bothered for now, just set your font-size to absolute values ie font-size: 12px and it should work fine (hopefully).
tagged: professional // Comments [4]
Related posts:Select a random row in MS SQL...Regular expressionsVS2005, ASP.NET 2 & DLLs, DLLs..MS's ASP.NET and.. PHP2-way databinding cascading drop down lists within a FormViewApplicationName Property when customising providers
Disclaimer The posts on this blog are provided "AS IS" with no warranties. The opinions expressed herein are my own personal opinions and do not represent any other person's views in anyway.