Jump to content

chrome's weird behaviour


ted_chou12

Recommended Posts

Hi, I have a script that works in ie, ff when you change the font size but not in chrome, i wonder if other people have experienced it too:

<div class="menu">
		<ul id="nav">
			<li class="first" style="width:53px;">
				<a href="/users/index.php">INDEX<!--[if IE 7]><!--></a><!--<![endif]-->
				<!--[if lte IE 6]><table><tr><td><![endif]-->
				<ul>
					<li><a href="/users/profiles.php?user=<?php echo $username;?>">View My Profile</a></li>
					<li><a href="/users/editprofile.php">Edit My Profile</a></li>
					<li><a href="/users/editaccount.php">Edit My Account</a></li>
					<li><a href="/users/editpreference.php">Edit Preferences</a></li>
					<li><a href="/users/friends.php">My Friends Lists</a></li>
				</ul>...//continues on

and the css code is  here:

<style type="text/css">
*/
.menu {
width: 770px;
font-size: 11px;//changing this.**********
position: relative;
z-index: 100;
white-space: nowrap;
padding: 1px 0px 1px 0px;
}
/*	remove all default list styling */
.menu ul {
padding: 0px;
margin: 0px;
list-style-type: none;
}
.menu ul#nav {
margin: 15px 0 0 0;
}
/*	float the list to make it horizontal
relative positon so that you can control the dropdown menu positon
*/
.menu li {
float:left;
position: relative;
/* space between buttons */
margin-left: 2px;
}
.menu .first {
margin-left: 0px;
}
.menu .last {
margin-right: 0px;
}

/* FIRST-LEVEL NORMAL *********************************************************/
.menu a,
.menu a:visited {
display: block;
font-size: 11px;// and changing this *****
text-decoration: none;
text-align: center;
font-weight: bold;
background-image: url('nav_top_backg_off.gif');
background-color: #B6D3F7;
color: #2B449C;
height: 15px; padding-left:5px; padding-right:5px; padding-top:3px; padding-bottom:2px
}

Changing them changes the font size in all other browsers except for chrome, i dont understand why, please let me know if these pieces of the code is not enough.

Ted

Link to comment
https://forums.phpfreaks.com/topic/178005-chromes-weird-behaviour/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.