Home
Services
Business Listings
Free Business Scan
Listings & Reviews Pricing
App Development
Blog
Contact
Search
Home
Services
Business Listings
Free Business Scan
Listings & Reviews Pricing
App Development
Blog
Contact
Blog
Blog
Techemistry Blog
asp:Menu Flicker on Page_Load - Solved
7/13/2015 1:48:00 PM
--
Ted Krapf
<p>Have an asp:menu that is flickering on (showing all the sub menus) on page_load and/or post back? Of course you do, because that server control is pretty squirrely. Here's the simple CSS fix that corrects the issue:</p> <p><br /> </p> <style type="text/css"> <br /> /* fixes ugly menu flicker */<br /> .menu ul li ul { display: none; }<br /> .menu ul li { position: relative; float: left; list-style: none; }<br /> .menu ul li ul li { width: 100%; }<br /> <style> <p><br /> </p> <p>I've seen numerous "fixes" for Css menu getting flickering while page post back, but the ones I found never included the 3rd line. If you have sub menus, the 3rd line (.menu ul li ul li) corrects the width and positioning issue.</p> <p><br /> </p> <p>Cheers and happy coding!</p>
[
return to articles list
]
Recent Articles
Daily Tip - Update AddRemoveProgramsIcon (and other properties) in a Visual Studio Installer Project
6/11/2019 8:35:00 PM
--
Ted Krapf
ZeroSSL with IIS 10
5/3/2019 5:11:00 PM
--
Ted Krapf
MinerGate.com Review - Mixed Emotions
2/3/2018 6:44:00 AM
--
Ted Krapf
Account Breach Monitoring
9/20/2017 3:36:00 PM
--
Ted Krapf
DBML Visualizer VERY Slow - solved!
3/29/2017 8:15:00 PM
--
Ted Krapf
Poor Man's SQL Log Shipping (Kinda)
12/23/2016 9:54:00 PM
--
Ted Krapf
Excel Column Letter To Number.com
4/8/2016 3:06:00 PM
--
Ted Krapf
Easy & Powerful Ecommerce Solution
4/5/2016 7:58:00 PM
--
Ted Krapf
asp:Menu Flicker on Page_Load - Solved
7/13/2015 1:48:00 PM
--
Ted Krapf
Offline ClickOnce app with command line parameters
3/9/2015 9:46:00 PM
--
Ted Krapf