Moloney Posted January 7, 2013 Report Share Posted January 7, 2013 (edited) Hi all, I am using the translate property to pull down my nav buttons a little bit when they are hovered over. The problem I am having though is that the overflow is hidden. I thought it should be visible by default? nav ul li:hover { -moz-transform:translate(-4px, 4px); overflow:visible; } Also, even when I put overflow:visible; in specifically, it still is hidden because the background-color of the body shows up rather than the button background color. In fact, I've tried a few different things now including changing the z-index and position to relative and I can't seem to get the overflow of these nav buttons to show up. Any ideas anyone? Edited September 1, 2013 by Stephenius Quote Link to comment Share on other sites More sharing options...
Moloney Posted January 7, 2013 Author Report Share Posted January 7, 2013 (edited) Hi all, I am using the translate property to pull down my nav buttons a little bit when they are hovered over. The problem I am having though is that the overflow is hidden. I thought it should be visible by default? nav ul li:hover { -moz-transform:translate(-4px, 4px); overflow:visible; } Also, even when I put overflow:visible; in specifically, it still is hidden because the background-color of the body shows up rather than the button background color. In fact, I've tried a few different things now including changing the z-index and position to relative and I can't seem to get the overflow of these nav buttons to show up. Any ideas anyone? ok, i figured this one out. the problem was that the background color of the nav ul li:hover element had to be set to #fff just like the nav element. But I thought this colour would have been inherited. Wonder why it wasn't? (maybe hover simply doesn't inherit parent features?) Edited September 1, 2013 by Stephenius Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.