Text size has gone screwey! Tell me why and win an e-biscuit

Associate
Joined
20 Oct 2005
Posts
112
Hello, I'm having a problem with our company's website as it appears that in the last day or 2 the font size in Firefox and Chrome has suddenly become massive! IE still seems to be fine though :confused:

Here's the CSS, if anyone can spot an obvious mistake I will gladly hand over an e-biscuit!

Code:
/* GENERAL STYLES */
/* Rich text editor styling start */
#holderBody {
background: #eee;
}

#holder {
background: #a5a281;
border: 1px solid #000;
padding: 15px;
margin: 15px;
text-align: left;
width: 500px;
}
#holder a {
	text-decoration: underline;
}
/* Rich text editor styling end */

body {
	font-family: Verdana, Arial;
	font-size: 0.75em;
	background-image: url(/gfx/bg.jpg);
	background-repeat: repeat-x;
	margin: 0px;
	margin-top: 0px;
	line-height: 130%;
	color: #414141;
	font-size: 8pt;
}
legend {
	color: #000;
} 
p {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0px;
    margin-right: 0px;
    line-height: 140%;
}
a {
	color: #414141;
	text-decoration: none;
}
a:hover {
	color: #393939;
	text-decoration: underline;
}
img {
	border: 0px;
}
input {
	border: 1px solid #9f9f9f;
	font-size: 9pt;
}
.menu {
	background-repeat: repeat-x;
	height: 20px;
}
.menutd {
	padding: 2px 10px;
}
.menutext {
	font-family: Arial;
	color: #424242;
	font-size: 7pt;
        text-transform: uppercase;
}
.undermeny {
	background-image: url(/gfx/undermenybg.jpg);
	background-repeat: repeat-x;
	height: 16px;
}
.submenu {
	background-color: #e8e8e8;
	position: relative;
	top: 4px;
}
.submenutext {
	padding: 2px 5px;
	font-size: 8pt;
	font-family: Arial;
	text-transform: uppercase;
	color: #414141;
}
.main {
	background-repeat: repeat-y;
}
.content {
/*	background-image: url(/gfx/contentbg.jpg); */
	background-repeat: repeat-x;
	height: 400px;
	padding: 2px 5px;
        color: #333333;
       font-size: 8pt;
       line-height: 140%;
       margin-left: 0px;
       margin-right: 0px;
}
.pagecontent {
	color: #414141;
}
.pagecontent img {
	border: 1px solid white;
	margin: 5px 2px;
}
.pagecontent a {
	text-decoration: underline;
}
.pagecontent legend {
	color: #333;
}
.tabaktiv {
	background-repeat: repeat-x;
	padding: 0px 5px 0px 5px;
}
.tabaktivL {
	background-image: url(/gfx/tab_aktiv_l.jpg);
	width: 5px;
	height: 16px;
}
.tabaktivR {
	background-image: url(/gfx/tab_aktiv_r.jpg);
	width: 5px;
	height: 16px;
}
.tabaktivlink {
	color: #414141;
	font-size: 7pt;
	text-transform: uppercase;
}
.tabinaktiv {
	background-image: url(/gfx/tab_inaktiv_bg.jpg);
	background-repeat: repeat-x;
	padding: 0px 5px 0px 5px;
}
.tabinaktivL {
	background-image: url(/gfx/tab_inaktiv_l.jpg);
	width: 5px;
	height: 16px;
}
.tabinaktivR {
	background-image: url(/gfx/tab_inaktiv_r.jpg);
	width: 5px;
	height: 16px;
}

.tabinaktivlink {
	color: white;
	font-size: 7pt;
	text-transform: uppercase;
}
.highlights {
	color: white;
	font-size: 8pt;
	padding: 10px 7px;
	line-height: 1.1;
}
.highlights a {
	color: white;
}
.highlights p {
	padding-bottom: 10px;
}

.level2{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.level3{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.level4{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.level5{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.level6{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.level7{
	font-family: Arial;
	font-size: 7pt;
	text-transform: uppercase;
	padding: 2px 5px 2px 10px;
	border-bottom: 1px solid #e8e8e8;
}
.image {
	border: 1px solid white;
	margin: 5px 2px;
}
.Overskrift {
	font-family: Arial;
	font-size: 16pt;
	color: #333333;    
	line-height: 130%;
       margin-left: 0px;
       margin-right: 0px;
}
.Uthevet {
	font-family: Arial;
	font-size: 12pt;
	color: #201e18;    
	line-height: 130%;
}
.Normal {
	font-family: Arial;
	font-size: 9pt;
	color: black;
	line-height: 130%;
}

.topmenuDropDown {
	width: 135px;
	position: absolute;
	z-index: 998;
	border: 1px solid #fff;
	background-color: #a4a280;
	padding: 10px;
	padding-bottom: 5px;
	mozopacity: 0.9;
	opacity: 0.9;
	filter: ALPHA(opacity=90);
	font-size: 0.85em;
	visibility: hidden;
	line-height: 1;
}
.topmenuDropDown a {
	color: #fff;
	display: block;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.topmenuDropDown a:hover {
	color: #ddd;
}
.topContentImage {
	width: 848px; 
}
.bottomContentImage {
	height: 33px; 
	width: 100%;
}

.panorama {
	left: 0px; 
	top: 0px; 
	z-index: 1;
	overflow: hidden;
	border: 1px solid #fff;
}
.panorama img {
	border: none;
	padding: 0px;
	margin: 0px;
}


/* EDITOR PROPERTIES */
h1 {
font-family: Arial;
font-size: 1.8em;
color: #414141;    
line-height: 130%;
margin-bottom: 2px;
padding-bottom: 2px;
margin-top: 2px;
padding-top: 2px;
padding-left: 0px;


}

h2 {
font-family: Arial;
font-size: 1.4em;
color: #414141;   
line-height: 130%;
margin-bottom: 2px;
padding-bottom: 2px;
}

R2 {
font-size: 75%;
}

h3 {
font-family: Verdana, Arial;
font-weight: bold;
font-size: 1em;
color: #414141;    
line-height: 130%;
margin-bottom: 2px;
padding-bottom: 2px;
margin-left: 0px;
margin-top: 2px;
padding-top: 2px;
padding-left: 0px;
text-transform: uppercase;
}

imageborder {
border: 1px solid white;
margin: 5px 2px;
}

h5 {
border: none;
margin: 0;
padding: 0;
}

Ideas? :(
 
At a quick guess, I would say the problem might revolve around having two separate font sizes specified for your body tag. I would assume that IE is using one of the body font sizes and chrome/ff are using the other.

Once again, this is just a quick guess so I could be completely off base here.

My advice would be to read up on using ems for font size.

http://www.alistapart.com/articles/howtosizetextincss/
 
Last edited:
Thanks for the link.

I've tried removing one of those font size comments but to no avail. What's strange is that we added some css a week ago and the font size changed sometime after that, but I'm pretty sure it wasn't immediately. Here's the new code added

Code:
.umbMailFormLabel {
	float: right;
	width: 23em;
}

#contactForm input {
	width: 15em;
}
#contactForm textarea {
	width: 15em;
	height: 8em;
}

UmbMail refers to our content mechanic; Umbraco.

Not sure I can put our link on here but if anyone is kind enough to try helping further I can PM it through.

Thanks guys :)
 
I don't see why you can't post a link on here, most everyone does as it's just for help.

You can send it to the email addy in my trust though if you would like.
 
Thanks for the link.

I've tried removing one of those font size comments but to no avail. What's strange is that we added some css a week ago and the font size changed sometime after that, but I'm pretty sure it wasn't immediately. Here's the new code added

Code:
UmbMail refers to our content mechanic; Umbraco.

Not sure I can put our link on here but if anyone is kind enough to try helping further I can PM it through.

Thanks guys :)

why not?
 
Back
Top Bottom