HighDots Forums  

Simple Question: Why does Font Style change on Web Pagein different Browsers?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Simple Question: Why does Font Style change on Web Pagein different Browsers? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JSloanSDRE
 
Posts: n/a

Default Simple Question: Why does Font Style change on Web Pagein different Browsers? - 12-06-2007 , 05:32 PM






Please check out a re-design I am doing:

http://www.rimnordic.com/test/rimtest.php

In IE7, everything looks just about the way I want it to look, including the
small "Arial" style font, which was set in Dreamweaver CS3. So when I checked
the page in FireFox, the font is Times New Roman, and is larger, throwing the
design of the page off. Could somebody please tell me how I can set a static
font so no matter what browser is viewing, it never changes?
What is funny is at the old site, (www.rimnordic.com) it also has WebYep, but
the page seems to display "Arial" just fine in FireFox and IE? Why is the new
test site is displaying Times New Roman in FireFox? The code looks the same on
the two pages?

I have seen other sites that can maintain one style in multiple browsers, so
how can I change it, thanks

-Joe


Reply With Quote
  #2  
Old   
SnakEyez02
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 05:43 PM






On your new page you are defining the style at certain points on your page. In
the original version you defined the font-family in the body tag of your CSS
file. Try putting the font-family definition on the CSS document for the body.


Reply With Quote
  #3  
Old   
Alec Fehl
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on Web Page indifferent Browsers? - 12-06-2007 , 05:45 PM



Probably because your stylesheet is invalid. Your block:
body,td,th {
color: #000000;
..style1 {font-family: Arial, Helvetica, sans-serif; font-family: Arial,
Helvetica, sans-serif;
font-size: 9px;
}

Is missing the closing brace for the body,td,th rule. Also need the
font-family defined in the body,td,th rule. (May want the size in there
also) Should be:

body,td,th {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
}

..style1 {font-family: Arial, Helvetica, sans-serif; font-family: Arial,
Helvetica, sans-serif;
font-size: 9px;
}



Unrelated - but why do you have the font-family stated twice in the same
rule? You have that in a few places in your code.

..style1 is defined, but not in use on the page.

--
Alec
Adobe Community Expert

Reply With Quote
  #4  
Old   
bregent
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 05:56 PM



Quote:
Could somebody please tell me how I can set a static font so no matter what
browser is viewing, it never changes?

You can't. Users have the ability to change their font size at will. It's as
easy as holding ctrl while nudging the mouse wheel. You need to design your
pages around that fact.



Reply With Quote
  #5  
Old   
JSloanSDRE
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 06:01 PM



Thank you SnakEyez. I was wondering if you could a bit more specific. I have limited coding skills and I am not sure where to define the font style

Reply With Quote
  #6  
Old   
JSloanSDRE
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 06:38 PM



woohoo you guys are awesome. got it fixed!!

Reply With Quote
  #7  
Old   
JSloanSDRE
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 06:39 PM



BTW, how do you guys think the page looks and functions? Im still learning everything and i have to say im quite proud of myself, hehe

Reply With Quote
  #8  
Old   
SnakEyez02
 
Posts: n/a

Default Re: Simple Question: Why does Font Style change on WebPage in different Browsers? - 12-06-2007 , 08:29 PM



It doesn't look too bad. You should put some padding where your news starts
because the first date overlaps the title there.

Looking at your original site, I would argue that the text is too small by
default and I am too lazy to do any tricks with the mouse like bregent suggests
and make the text bigger (looking at events & trail map).

Also looking at your new site you are missing a link back to your home page.
That should be added to your main menu.


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.