Home › Forums › CSS › Menu Width takes a couple of seconds to snap › Reply To: Menu Width takes a couple of seconds to snap
December 1, 2014 at 6:23 am
#189613
Sedana
Participant
You seem to be setting the menu items width with javascript to 210px. In your stylesheet the width is set to 200px:
#ariext106 LI.ux-menu-item-level-0 {
width: 200px;
padding-left: 10px;
}
CSS loads faster than your javascript function and that is why your menu appears to be too small at first. I don’t see why you need to set the width with javascript at all.