About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« Book Review - Succeeding With Open Source by Bernard Golden | Main| Book Review - OpenOffice.org Writer by Jean Hollis Weber »

A better way to build and test my CSS...

Category Software Development

OK...  A number of you are going to say "well DUH!"  And I deserve it.  But keep in mind I'm still rather new to this stuff...

I've rolled out two major web apps in the last couple of weeks at work.  And in reality, those are really my *first* two major web apps.  Since our internal browser standard is IE6, I was coding my CSS to work with that browser.  In both cases, the apps looked pretty good and I had the CSS working the way I wanted.

But when you're new at something, you don't know if it's working by accident or if it's really good code.  In my case, there was far more accident than good code.

One of the applications also allows use outside of our corporate network.  I fired up the app in Firefox, and it was horrid!  Overlaps, bad positioning, text not behaving, the works.  When I started working through the issues in my CSS file, I found that most of what worked in IE was in spite of myself.  I had block sections that were too small for the content, but that IE sized properly.  Firefox didn't allow that.  I had a misspelled anchor pseudo-class that was working fine in IE, but it was broke in Firefox.  After some time spent tweaking stuff, I got both browser platforms working fine with no browser-specific coding.  In all cases, it was misunderstanding as to what was happening in the CSS.  Things look fine in Netscape, and there's only one minor nit in Opera.  

So now, when I'm building an app with CSS, I'll be using Firefox as my test bed knowing the CSS I create will be more accurate.  And I bet in most cases, it will end up running fine in IE as a result...

Comments

Gravatar Image1 - No Duh! from this corner. We have all been there with CSS and it always seems a never ending struggle with the browsers sometimes...

Gravatar Image2 - I too have run across this except mine was the opposite way around. I had done my initial tweaks and checked with FireFox, when I looked at the page in IE it was horrible. So, I've started checking with IE first then tweaking to correct the issues in other browsers. Don't know which way to code first is best, but either way when we're just learning it is very time consuming either way.

Keith

Gravatar Image3 - Firefox is strict HTML 4.0. Run the pages through http://validator.w3.org. Most pages designed for IE fail horribly. But you already know that... You may want to talk to the MNW web folk about this kind of stuff. They test on a couple of different browsers. And if you need various versions of browsers to test with, there's an archive of all sorts of browsers at this site http://browsers.evolt.org.


Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...