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 August 14th, 2005, 07:11 AM
naomi0201 naomi0201 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 naomi0201 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 19 sec
Reputation Power: 0
CSS on Firefox for dummies... please.

Hello! I'm kinda new in this business, so go easy on me... please. ^^;

I have a site based on DIV layers and CSS and, as u guessed, it doesn't show like it should on Firefox. How do I fix this?

Here is a link to the style sheet: http://www.duoxheero.com/style.css

And here is one of the pages: http://www.duoxheero.com/main.html

I'd appreciate any kind of help... anything to make Firfox display my site.

Thank u,

Naomi.

Reply With Quote
  #2  
Old August 14th, 2005, 11:07 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 in Firefox

Quote:
Originally Posted by naomi0201
... I have a site based on DIV layers and CSS ...
Firefox (and Netscape too, both mozilla) are not as forgiving of poorly written code as IE is. One thing I notice is the unnecessary use of tables to structure the page's layout. Tables are good for tabular data, and for years many people used them for layout. But with CSS they can be largely avoided. For example the page has several sections like this
Code:
<div>
<table>
<tr>
<td>
<p>text here...</p>
<p>text here...</p>
</tr>
<tr>
<td>
<p>text here...</p>
<p>text here...</p>
</tr>
</table>
</div>

NOTE* the missing end td tags
These could be simply written as
Code:
<div>
<p>text here...</p>
<p>text here...</p>
<p>text here...</p>
<p>text here...</p>
</div>

and would look the same after applying and table related css styles to the p-s ie. change
Code:
td { font-family: verdana; font-size: 12px; color: #ffffff; line-height:12pt;}
to
Code:
p { font-family: verdana; font-size: 12px; color: #ffffff; line-height:12pt;}

Try these changes and see if it helps.

Reply With Quote
  #3  
Old August 15th, 2005, 03:11 AM
naomi0201 naomi0201 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 naomi0201 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 19 sec
Reputation Power: 0
Thank u so much. Heh. I did say I was new in this business so I didn't expect the code to be perfect.
In any case, I don't think that the tables are the problem because the CSS doesn't apply to anything, not the background (which is essential to the desgin) or the text properties. Is there a way to fix that? Especially the background? The repeat property doesn't seem to work on Firefox.
I appreciate the help!
Naomi.

Reply With Quote
  #4  
Old August 16th, 2005, 05:41 AM
MichaelSoft MichaelSoft is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 121 MichaelSoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 20 sec
Reputation Power: 3
Thumbs up

The 'code' is not that bad ... have seen much worse

First thing I noticed is:
Code:
<link rel=stylesheet href="style.css" type=text/css>

Always use quotes where needed, must be something like:
Code:
<link rel="stylesheet" type="text/css" href="style.css">

But to answer your question:
When you have a external style sheet, do not use <style type="text/css"> and </style>. Since you made a link to it, and specified that it is a style sheet, FireFox tries to parse this and fails.
You could leave the <!-- and --> in.

Reply With Quote
  #5  
Old August 16th, 2005, 09:46 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 and Firefox

" .. seen worse .. " My God yes, I've seen some so bad it would make you want to run away. And that on "professional" pages too!
Your code has errors, but believe me, you're not off to a bad start.
MichaelSoft has made some valid observations.
Anyway, I did some more scrutinizing and here's what I came up with:

In the #image div you use absolute size values. This works because you know the size of the sliced images.

Try this: test by temporarily adding this line to the end of the #nav and #content divs style's:
style="background-color: #0f0; border: 3px #f00 solid;"

Take a look with IE and Firefox.

Then test by temporarily changing - overflow: visible to overflow: scroll

Take a look with IE and Firefox.

It seems the IE and Firefox differ in the order in which they render page elements.

You should now be able to correct the page's rendering so that it will at least display as desired in the IE, NS, Opera and FF browsers with Windows.

Perhaps you do not have a business site where quality is crucial, but please do your users a favor and correct the poor coding that I previously mentioned, There are other operating systems and many browsers. Just because the site looks good in the browsers you test with is not a guarantee that it will look good to everyone else.

Reply With Quote
  #6  
Old August 16th, 2005, 11:26 AM
naomi0201 naomi0201 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 3 naomi0201 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 19 sec
Reputation Power: 0
Thank u so much for all of your help. I will do my best. ^-^

I've only recently taught myself CSS and I'm still learning, I guess. Perhaps I was too hasty by redesigning my site with something I have not yet mastered.

In any case I made the changes you've offered and tested it on Firefox. It looks fine to me, better than before that it. I'll keep learning, of course.

Thank u so much!

Naomi.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > CSS on Firefox for dummies... please.


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 3 hosted by Hostway