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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.