SunQuest
 
           Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old October 10th, 2005, 01:07 AM
hikkifan hikkifan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 2 hikkifan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 35 sec
Reputation Power: 0
Page is Distorted in Firefox

I'm redesigning my website and this is my first attempt at using CSS. I've always used the old table layout format, but CSS fit the look I was going for better. I'm still getting the hang of it. Anyway, I've positioned all of my elements and the page looks perfect in Internet Explorer (1024 x 768 resolution), but is completely distorted in Firefox. All the pics lay on top of each other in Firefox. Here's a link to the page. The page is optimized for 1024 x 768 resolution because the large majority of my visitors use that screen resolution.

URL

You guys probably get this question a lot, but does anyone know how I can fix the code so that it will display properly in Firefox?

Reply With Quote
  #2  
Old October 10th, 2005, 10:34 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 541 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 15 m 6 sec
Reputation Power: 3
Css

Hi hikkifan, welcome to the forums. One of the great things about CSS is that it can be used to write fluid layout that looks good in all browsers on all OS-s at all resolutions. (Granted , it's not always easily achieved) You said the page was "optimized" for 1024 x 768, but you should realize that in it's current form it is "only" viewable at that resolution. The main reason is the ubiquitous use of position: absolute. This style positions elements in a "set" position relative to their containing elements and can be useful. IMHO you shouldn't over-use it. A popular way to design is to design for Firefox (it's standards compliant) first and then tweak for other browsers. Although valid pages aren't necessarily well designed, it's a good start. Try running your pages through http://validator.w3.org/ and http://jigsaw.w3.org/css-validator/

Reply With Quote
  #3  
Old October 10th, 2005, 04:51 PM
hikkifan hikkifan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 2 hikkifan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 35 sec
Reputation Power: 0
Thanks for the suggestion. I'll definately do that. One question, though. Instead of using absolute positioning, what would be the better way of positioning the elements?

Reply With Quote
  #4  
Old October 12th, 2005, 02:59 AM
Laban Laban is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 40 Laban User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 15 m 32 sec
Reputation Power: 4
Page looks good in Firefox now :P Perhaps you already fixed it.

Hover effect in Firefox
I see that you alt="YaddaYadda" for all images, if you like to display the same "hover" effect in Firefox add title="YaddaYadda".

Prevent yourself from getting lost in the CSS
To further set you on, in my personal opinion, the correct path I'd like to suggest making a separate CSS file. Sifting through your code briefly it looks like you add the CSS code directly into the page itself (or maybe you @import it, can't tell). That works fine now but might get you into trouble later on when your CSS code is 3 feet long :P.

Linking to your css file, include between <head></head>
Code:
<link href="cssfile.css" rel="stylesheet" type="text/css">


Saves you a lot of scrolling if your page grows :P

Sorry to say, but I don't have any suggestions on the absolute positioning thing, I always use <table> or <div> for my layouts, I feel more in control that way as people open pages in all kinds of resolutions and window sizes and I like the page to look the same for 'most' instances.

Reply With Quote
  #5  
Old October 12th, 2005, 07:38 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Quote:
Originally Posted by Laban
Linking to your css file, include between <head></head>
Saves you a lot of scrolling if your page grows :P
As well, if you make a change (let's say you convert all blue text to red), that change is represented globally... across all your pages... Embedding the style on the page means you must update EVERY page... destroying the benefit of separating presentation (CSS) from content (HTML)

Quote:
Originally Posted by Laban
Sorry to say, but I don't have any suggestions on the absolute positioning thing, I always use <table> or <div> for my layouts, I feel more in control that way as people open pages in all kinds of resolutions and window sizes and I like the page to look the same for 'most' instances.
The same benefits can be achieved using tableless design. I highly recommend you give it a try. You'll be surprised how much MORE control you have over your layout. You're not confined to the grid-layout that TABLES force. There's a lot of benefits for your users as well.

Reply With Quote
  #6  
Old October 13th, 2005, 02:38 AM
Laban Laban is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 40 Laban User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 15 m 32 sec
Reputation Power: 4
Quote:
Originally Posted by MadCowDzz
The same benefits can be achieved using tableless design. I highly recommend you give it a try. You'll be surprised how much MORE control you have over your layout. You're not confined to the grid-layout that TABLES force. There's a lot of benefits for your users as well.


But I like searching for the missing </td> or "/" in notepad!! Especially when the code is tabbed like a foot and a half to the right :P

Never looked into that option as I always make a index page with the layout and then include files with content where I want it to be...but I should perhaps not fight evolution and look into that, got any good links?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Page is Distorted in Firefox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway