[SOLVED] Simple Question: Why does Font Style change on Web Page in different Browse

This is a discussion on "[SOLVED] Simple Question: Why does Font Style change on Web Page in different Browse" within the Web Page Design section. This forum, and the thread "[SOLVED] Simple Question: Why does Font Style change on Web Page in different Browse are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 5th, 2007, 10:14
Up'n'Coming Member
Join Date: Jun 2007
Location: San Diego/RC
Age: 23
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Simple Question: Why does Font Style change on Web Page in different Browse

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? I have seen other sites that can maintain one style in multiple browsers, so how can I change it, thanks

-Joe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 5th, 2007, 10:35
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

I assume you mean the text to the left of the picture if so their id no style associated with it, therefore each browser is just defaulting to its standard text.

HTML: Select all
<p>
                <br />
<br />
12-3-07<br />
FIRE UPDATE:  We recieved a dusting of snow the other day, but it's already gone. Maybe a sign??!! At this time, Green Valley Nordic will be closed for this winter due to the two fires' worth of damages making it very hazardous...falling trees, etc. Rim Nordic will be open when the snow cooperates. Our new snow report page will be up soon. 
Thank you for checking in.<br />
              </p>
should be something like.

HTML: Select all
p>

                <br />
<br />
<span class="style1">12-3-07<br />
FIRE UPDATE:  We recieved a dusting of snow the other day, but it's already gone. Maybe a sign??!! At this time, Green Valley Nordic will be closed for this winter due to the two fires' worth of damages making it very hazardous...falling trees, etc. Rim Nordic will be open when the snow cooperates. Our new snow report page will be up soon. 
Thank you for checking in.</span><br />
              </p>
hope this helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 5th, 2007, 10:43
Up'n'Coming Member
Join Date: Jun 2007
Location: San Diego/RC
Age: 23
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

Here is my code: (To make matters worst, I am using the CMS WebYep!) And I have limited knowledge in coding!

<td><p>&nbsp;</p>
<p align="left" class="style3"><span class="style11"></span>
<?php webyep_longText("Fieldname", false, "", false); // WebYepV1 ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 5th, 2007, 10:53
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

I have never heard of webyep,but if you can access your source code you can change the code as in my above post. I will check out webyeb and see if I can find a solution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 5th, 2007, 11:00
Up'n'Coming Member
Join Date: Jun 2007
Location: San Diego/RC
Age: 23
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 5th, 2007, 11:14
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

The code on the two pages is different. On your older page it has a doctype and headers. Your new page doesnt. also the old page has styles applied to text youre new page doesnt.

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Rim Nordic and Green Valley Nordic</title>
<style type="text/css">
<!--
body {
	background-color: #000440;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 50%;
	background-image: url();
}
#Layer1 {
	position:absolute;
	width:1205px;
	height:958px;
	z-index:1;
	left: 40px;
	top: 75px;
}
#Layer2 {
	position:absolute;
	width:2438px;
	height:299px;
	z-index:1;
	left: 1px;
	top: 134px;
	background-color: #FFFFFF;
}
#Layer3 {
	position:absolute;
	width:995px;
	height:124px;
	z-index:1;
	left: 0px;
	top: 1px;
	background-color: #000440;
}
#Layer4 {
	position:absolute;
	width:190px;
	height:367px;
	z-index:2;
	left: 4px;
	top: 126px;
	background-color: #FFFFFF;
}
#Layer5 {
	position:absolute;
	width:957px;
	height:17px;
	z-index:3;
	left: 3px;
	top: 128px;
}
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
}
#Layer6 {
	position:absolute;
	left:0px;
	top:384px;
	width:263px;
	height:272px;
	z-index:1;
}
#Layer7 {
	position:absolute;
	left:265px;
	top:384px;
	width:500px;
	height:365px;
	z-index:2;
}
.style6 {font-size: 12px}
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-size: 10px}
.style3 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
#Layer8 {
	position:absolute;
	left:28px;
	top:671px;
	width:173px;
	height:299px;
	z-index:3;
}
#Layer9 {
	position:absolute;
	left:0px;
	top:659px;
	width:262px;
	height:114px;
	z-index:3;
}
.style11 {color: #FF0000}
.style12 {font-family: Arial, Helvetica, sans-serif; font-size: 9px; }
a:link {
	color: #FF0000;
}
a:visited {
	color: #FF0000;
}
.style30 {color: #FF0000; font-size: 9px; }
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
new page there is no doctype or <head></head> tags. also there are no styles applied to your text.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 5th, 2007, 11:52
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

Are you using dreamweaver with the webyep extension?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 5th, 2007, 20:29
Up'n'Coming Member
Join Date: Jun 2007
Location: San Diego/RC
Age: 23
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

dab42pat -

Yes I am using Dreamweaver with WebYep Extension. This is frustrating and I wish I had more knowledge with coding, so I could spot problems like this. I still don't know how to fix it

BTW, thanks for the help too
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 5th, 2007, 20:56
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

You might find this useful, if you havent looked at it yet.

http://www.obdev.at/resources/webyep...als/index.html

I think if you can get the text set with a style then others can change or add text, keeping the style intact.

look at the adding css styles paragraph.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 6th, 2007, 22:48
Up'n'Coming Member
Join Date: Jun 2007
Location: San Diego/RC
Age: 23
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

Dab-

I just want to say I got the problem fixed now. I really appreciate the help. For anyone curious, it was not a WebYep problem. I needed to set the Font and Size in PAGE PROPERTIES, and remove anything else from the coding

Thanks again

-Joe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Dec 6th, 2007, 22:53
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

Glad you got it sorted.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Dec 7th, 2007, 09:39
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Simple Question: Why does Font Style change on Web Page in different Browsers?

Glad you got this problem Sorted.

All you needed to do was declare the 'font-family:' in the 'body{}' tags in your CSS. This will make the changes site-wide granted each page uses the same CSS file.

Thread marked as Solved!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Simple form submission question future448 JavaScript Forum 2 Oct 14th, 2007 09:35
Simple Pop-Up page question BlackReef Web Page Design 3 Jun 29th, 2007 14:19
Question about "Browse" field for web form... pdbuddy Web Page Design 2 Apr 7th, 2007 00:20
Buttons to update font style and colour help Loobyt JavaScript Forum 4 Jun 20th, 2006 20:55
change style sheets screamer2k Web Page Design 5 Aug 6th, 2004 11:19


All times are GMT. The time now is 18:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42