Jump to content
Killersites Forums

Css Overflow Problem


Moloney
 Share

Recommended Posts

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 by Stephenius
Link to comment
Share on other sites

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 by Stephenius
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...