• Publisert
  • 1 min

Fixing the width of the Context Menu in IE7

Here is a very quick tip to fix the problem with the Context Menu in EPiServer expanding over the whole width of the webpage when using IE7:

 

<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/Styles/ie7.css" /><![endif]-->
Then, add this style to it:
.ContextMenu { max-width : 400px;}
And, voila, the Context Menu is no longer so wide.
Happy Coding!

First, make a stylesheet for ie7 only and add that to your page:

<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/Styles/ie7.css" /><![endif]-->

 

Then, add this style to it:

.ContextMenu { max-width : 400px;}

And, voila, the Context Menu is no longer so wide.

 

Happy Coding!