Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
My Site Won't Work In Firefox
#1
Posted 26 July 2007 - 08:57 AM
I am just learning CSS at the moment and am trying to redesign a very poor Front Page site I made a little while ago. I am starting to get the idea (I think) but am experiencing some inconsistancies that I can not correct between Firefox and IE. The site works fine in IE6, IE7 (as far as I can see!) but in Firefox it all falls apart.
Just to be clear, I am NOT asking for a site review here, but I am hoping someone can point out why the site is not working in FireFox so I can try to fix it (and also so I can avoid this in future!).
The site in question can be found at http ://www.justdine.com/justdine/justdine2.
Any advice would be much appreciated...
Thanks
#2
Posted 26 July 2007 - 10:18 AM
#3
Posted 26 July 2007 - 10:44 AM
I had similar problems with our last major redesign. I started out with the noble intention of going entirely CSS for the layout but after more time than I dare to calculate trying to get it consistent in both I came to a stark choice :-
Choice 1 - accept that this CSS thing is going to take a while to get my head round and plan to spend as much time as is necessary to get it all working right, even if that takes weeks.
Choice 2 - create a browser detection script and serve a different CSS for each type of browser.
Choice 3 - use the minimum amount of tables necessary to achieve what I want to achieve quickly and then use CSS for the rest.
I didn't have the time to go with 1 or 2 so I went with 3 in the end. I'm fairly happy with the result but it does mean that a thorough shakeup has been imminent since before the site even went live, which I'm not happy about at all!
Hopefully someone can give you (and me) some better advice about how to solve the problem, but if not then you might decide that it's only worth (hours vs. income) spending so much time on being noble and it's time to crack open the tables.
Apologies in advance to any CSS purists, but I've always been a fan of heresy!!
#4
Posted 26 July 2007 - 11:20 AM
Difficult choice! I don't have a problem with using tables where they make sense (to me at least) but I've already spent a while on this now so I reckon I'll try to get it right. At least then I'll have a better shot at getting it right first time next time... Plus although the site is for my work, it's just a pet project really - no money spent on it and it does not get any significant amount of traffic (yet!). It's for learning so I guess I should make use of it for that purpose!
Or maybe I'll go with browser detection an put up a Firefox version of the site which will just be a one liner in massive, bold font saying: "If you can't be bothered using a decent browser, you don't get to use my site!!!".
Cheers again!
#5
Posted 26 July 2007 - 12:41 PM
It's most often the non-standard implementation of things in IE that gives coders the headaches.
--Torka
#6
Posted 26 July 2007 - 05:39 PM
Build the CSS and test in FireFox then tweak for IE (if any tweaking is needed)
make sure you use a FULL & Valid doctype.
#7
Posted 26 July 2007 - 06:09 PM
#8
Posted 26 July 2007 - 06:12 PM
For example your #menu and #bodytext:
If your #menu is 140px wide, then set your #bodytext's left margin at atleast 140px and that should take care of it. Don't forget to add in any padding or margins that the left column has as well.
Here's how I set up my site's 2 column layout (you'll notice the total width of the #leftColumn is 171px with the padding-left, so I set my #rightColumn padding-left at 180px to make some extra white space between divs):
[indent] float: left;
width: 156px;
clear: both;
padding-left: 15px;
[/indent]}
#rightColumn { [indent] width: 594px;
float: none;
clear: right;
margin-left: 180px;
padding: 10px;
[/indent]}
Feel free to PM me if you have more questions.
Good luck,
Lorinda
#9
Posted 27 July 2007 - 04:01 AM
Thaks Lorinda, this was indeed the problem and I've got it working now the margins are in place (still needs a bit of tweaking to get the positions right but I'll sort that out later!
Qwerty - in truth I can't remember what it was for... Think I used it as a quick fix to a positional problem I was having early on. When I followed Lorinda's advice and used margins, I had to delete the pusher div's anyway as they made a mess of the IE version. A case of the wrong solution to a problem making things worse - understand now that margins are the way forward!
Chris - thanks for your input. Your sentiment is echoed in my other FF post and I'll be trying to work this way in future.
Thanks again everyone - don't think I could have coped with another day squinting at the screen with no real clue what I needed to do! Think I owe you a
#10
Posted 27 July 2007 - 08:08 AM
#wrapper {
height: auto;}
width: 800px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
Good luck!
Lorinda
#11
Posted 27 July 2007 - 08:33 AM
margin:0px auto;
#12
Posted 27 July 2007 - 08:48 AM
atribute:TOP RIGHT BOTTOM LEFT;
eg. padding:10px 5px 20px 15px;
So top is 10px, right is 5px, bottom is 20px and left is 15px.
And you can budle top/bottom and right/left together as Chris shows...
So his example margin:0 auto; is saying TOP/BOTTOM = 0px and RIGHT/LEFT = auto.
Hope that helps :-)
#13
Posted 30 July 2007 - 06:26 AM
#14
Posted 01 August 2007 - 08:17 AM
#15
Posted 08 August 2007 - 09:10 PM
Save one more byte:
margin: 0 auto;
Sorry Chris...just funnin that's all!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








