Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every body.
I was trying to make an inline menu in designing of a site,
and an interesting issue came up.
However the display:inline; is working in chrome and ff, but it seems that the
mentioned css statement does not work in IE11.
So what should i do?
i googled about that but i could not find usefull tips.
Thanks.
Posted
Comments
Sunasara Imdadhusen 6-May-14 8:15am    
Can you please provide code snippet for the same??
rogerfederer670 6-May-14 8:18am    
The code is like this:
html:
<div id="menu">
<div id="main-menu" class="nounderline">
<ul>
<li>خانه</li>
<li>محصولات</li>
</ul>
</div>
</div>
------------------------------------
css:
#menu
{
width:inherit;
height:50px;
background-color:Purple;;
border-radius:0px 0px 5px 5px;
direction:rtl;
}
#main-menu ul:first-child
{
position:absolute;
list-style:none;
display:inline;
}

#main-menu ul li
{
display:inline;
padding-right:40px;
float:right;
}

#main-menu ul li:first-child
{
padding-right:0px;
}
--------------------------------------

1 solution

Change the the ul tag and add the style will solve your problem:
HTML
<ul style="display: inline-flex;">
</ul>


Hope it helps :)
 
Share this answer
 
v2
Comments
King Fisher 6-May-14 8:41am    
:)
rogerfederer670 6-May-14 8:42am    
excellent,Thanks :)
Sanket Saxena 6-May-14 8:43am    
Most welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900