Header Div Covers Google Cache
Posted 31 July 2011 - 03:14 PM
top: 0 !important;
left: 0 !important;
border-bottom: 2px solid #0A5784;
It looks OK in all browsers I have checked (that is what the zindex stuff is all about) but on Google search cache it obscures the top of the page, covering the cache information.
Any ideas if there is a way to fix?
Posted 31 July 2011 - 03:53 PM
Change the container of your absolutely positioned element to position: relative.
If your #page container is position: relative, an absolutely positioned element directly inside the #page will treat the top of #page as top: 0.
I didn't need to know this until WordPress came out with the admin bar and messed up my themes. Now I've been going through and making sure elements with absolute positioning have something to keep them from going to top:0 and ending up under the admin bar.
Posted 31 July 2011 - 05:12 PM
In case you are not seeing the same thing as I am, attached is a screen shot.
Edited by jonbey, 31 July 2011 - 05:19 PM.
Posted 31 July 2011 - 11:06 PM
If I were you I would just hide it when looking at the cache. Who else is going to care?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users