Friday, November 03, 2006

Tip with respect to CSS and Browsers and font sizes...*

Friday, November 03, 2006 12:28:35 AM (GMT Standard Time, UTC+00:00)

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 :D... 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).

Related posts:
Select a random row in MS SQL...
Regular expressions
VS2005, ASP.NET 2 & DLLs, DLLs..
MS's ASP.NET and.. PHP
2-way databinding cascading drop down lists within a FormView
ApplicationName Property when customising providers

Friday, November 03, 2006 12:06:17 PM (GMT Standard Time, UTC+00:00)
noticed that same problem on a website I created. The site looked fantastic in firefox, and I thought my work was done. When I opened it up in IE ... it was like jekyll and hide ... just awful.
Friday, November 03, 2006 1:23:14 PM (GMT Standard Time, UTC+00:00)
Yea, they make our lives difficult don't they! Sheesh, lucky Opera hasn't really reached 'a Higher Status', or we'll have to be including that in cross-browser tests too!
Jason Nurse
Friday, November 03, 2006 2:16:18 PM (GMT Standard Time, UTC+00:00)
oi! don't forget the text only browsers m8
Friday, November 03, 2006 5:58:14 PM (GMT Standard Time, UTC+00:00)
Text only browsers? What oh what are those? ;)
Jason Nurse
Comments are closed.