javascript - WP element placement on responsive site -
i have premium theme site in dev here
http://brettcolephotography.com/sites/sra/
based on theme
http://themes.danyduchaine.com/mission/
the theme comes odd logo placement, can see, little black circle. client needed in left of nav. i've implemented solution
- moved nav on right margin-left make room. change behaves well.
- added nested div structure logo, using css pointer-event account div layering , click-through issues arise approach
html
<div id="bc-masthead"> <div id="bc-logo"> <div id="bc-logo-img"><a href="http://brettcolephotography.com/sites/sra/"><img src="http://brettcolephotography.com/sra.png" /></a></div> </div> </div>
css
#bc-masthead {position: fixed; top: 0px; left: 0px; height: 40px; width: 100%; pointer-events:none; z-index: 9999999 !important;} #bc-logo {max-width: 930px; margin-left: auto; margin-right: auto; text-align: left; position: relative; top: 7px; pointer-events:none;} #bc-logo-img {width: 205px; pointer-events: auto;}
overall gets pretty far goal. issues arise are:
- ie comptability pointer-event. frankly don't understand of javascript alternatives i've seen part, not sure if there's alternative or if facing compatibility issues. tried in ie10 , seemed fine.
- at mobile size white mobile nav box appears (responsive theme) under logo , can't seem change no matter try.
i open different approaches altogether or insights on how make i've done far work 100%. many thanks.
Comments
Post a Comment