php - Mega Menu CSS layout not working when variables added to clean url -
i have been working on site past 5 years , added mega menu development pages (eg. sandbox pages)
the mega menu being used can seen here: http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/
the menu works superb template pages, when actual urls used, , when clean urls used no variables. when variables used css/css3 doesn't seem load.
i tried menu 2 separate files (one within tags , 1 tags. made no impact on particular situation.
the abnormal alterations have been done menu has been made php file , added pages of sandbox using "include".
i have tried figure out, @ loss. deduction .htaccess mask when adding variables , menu conflicting, not sure conflict it. "mask" clean urls has been in place 4 years , first time have had level of conflict this, leaves me issue of menu.
if prefer me put sample code can that, didn't think needed seems centered on menu itself, visible in link above.
to reads this, thank time , energy in helping this.
i figured out problem , solution. solution pretty simple.
when using mask through .htaccess , html5/css3 there 1 standard being enforced code. guilty of being lazy when put js, css, , imag paths in , them similar includes. have uncovered can't them same. (with includes never start path "/", cs, js, , images have start path "/" when have htsccess mask in place. rule, , css3/html have enforced rule.
i added / css , images , works fine.
for of prefer literal code here 2 examples can see mean:
works: img src="/img/me3.png" style="border="0" alt="" broke: img src="img/me3.png" style="border="0" alt=""
works: href="/megamenu/menu.css" type="text/css" media="screen" broke: href="megamenu/menu.css" type="text/css" media="screen"
personally, feel incredibly stupid not catching this, did learn new in process. guess saying "there no stupid questions" applies.
Comments
Post a Comment