Below HTML Displays Menu in same line for FF latest version & Google Crome browsers but in IE9 it it show them in separate lines.
I want menu to be display in one line. I am not sure what i should do to fix this i tried several properties but didn't work as it works in FF & Crome. Any help in this would be appreciated
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("p").click(function()
{
$(this).hide();
});
});
</script>
<style>
.test
{
background-color: #B4984E;
border: 1px #ffffff solid;
color: #fff;
line-height: 1.35em;
padding: 4px 23px;
text-decoration: none;
/* white-space: nowrap; display: block;*/
display: inline-block;
cursor:pointer;
}
</style>
</head>
<body>
<div class="test" href="http://Default.aspx?PageId=3&Language=en-US">HOME</div>
<div class="test" href="http://PageId=5&Language=en-US">PROFILE</div>
</body>
</html>
Update: I cant use float:left in this one