Is Firefox a P.I.T.A. to design with?

lozina

Lifer
Sep 10, 2001
11,709
8
81
As much as I like using Firefox for web browsing it's got some pretty quirky behavior when it comes to trying to design a web page on it. I have a simple table that has a width of 600 and I set align to center, yet it does not center. I'm guessing firefox gets screwed up because there is a div inside the table (despite the div having a fixed width), because on another similar table it aligns just fine. Anyone else have a similar problem and found a way around it?

 

lozina

Lifer
Sep 10, 2001
11,709
8
81
Well I found out what was confusing Firefox but I really don't know why. I had a CSS class on that table which included "margin : 10px". As soon as I removed that one property, the table centers.... odd
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Firefox is an excellent place to do design. It generally has very good standards support. If you find something working on another browser (IE) that isn't working on firefox, you're probably breaking standards (but of course there are always exceptions to that). Check out the WebDeveloper plugin. It gives you easy access to viewing the internals of your layout in a number of ways (like outlining table cells, divs and the like).
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
IIRC, stuff like "align" doesn't propagate down into tables they way you probably expect. Also, you're likely confusing align and text-align. Before complaining that the layout is "wrong", you need to run your code through a verifier, and figure out if you want to render in "standards" or "quirks" mode (the behavior can be different sometimes - "quirks" mode does some things a little more like IE, while "standards" modes tries to do the layout correctly).

Firefox and SeaMonkey are excellent for designing pages - I highly suggest looking at the DOM Inspector - it can be very helpful when you're trying to figure out why something shows up the way it does.
 

fs5

Lifer
Jun 10, 2000
11,774
1
0
WebDeveloper plugin, colorzilla, and dom inspector are great for firefox. Microsoft's script debugger is better than firefox's javascript console though..

For html/layout firefox adhere's to standards. However, for javascript it can be a pain in the a$$ for dhtml. You write a lot more code to work around some of the quirks in firefox when doing dhtml.

It also is much more lenient when it comes to javascript. It lets you slide on many more things in IE. So when you fire the page up in IE you spot bugs much easier than in firefox.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Microsoft's script debugger is better than firefox's javascript console though..
There's much more than the javascript console - the DOM Inspector and Venkman (the JavaScript Debugger) are both powerful tools.

You write a lot more code to work around some of the quirks in firefox when doing dhtml.
Quirks in Firefox, or standards bugs in IE?

It also is much more lenient when it comes to javascript. It lets you slide on many more things in IE. So when you fire the page up in IE you spot bugs much easier than in firefox.
I've found the opposite. Working in a stricter environment helps catch problems better - if Firefox warns me about "Warning: Undeclared variable coutner" (enable JS Strict Mode for extra reporting), I'll realize I typo'd "counter". That's a simple example, but there are more complex cases where the stricter environment helps significantly.
 

fs5

Lifer
Jun 10, 2000
11,774
1
0
Originally posted by: CTho9305
I've found the opposite. Working in a stricter environment helps catch problems better - if Firefox warns me about "Warning: Undeclared variable coutner" (enable JS Strict Mode for extra reporting), I'll realize I typo'd "counter". That's a simple example, but there are more complex cases where the stricter environment helps significantly.
right, I was saying IE complains more than firefox. As for venkman, I haven't tried it but I'm sure as hell going to check it out now.
 

hdeck

Lifer
Sep 26, 2002
14,530
1
0
gotta use the box model hack when you are creating that stuff in css or it won't show up correctly.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: CTho9305
Venkman (the JavaScript Debugger)
:thumbsup: Can be a little tricky to work with at times but it sure gets the job done.
 

dukdukgoos

Golden Member
Dec 1, 1999
1,319
0
76
Firefox is much easier than IE to develop with... IF you code to W3C standards. When you set margin: 10px on the table, you told it to have a 10px margin on all sides of the table, including the left and right sides. This overrides how you properly center something, which is to set the left and right margin to "auto". Try changiing your rule to "margin: 10px auto"
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
test with any gecko-based browser, fix for IE later. I typically test a page with Firefox, Opera, IE and Netscape on Windows, and Safari and Firefox on the Mac.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |