Jump to content
Stef's Coding Community
beermantm

Checkbox Hack

Recommended Posts

I used the checkbox hack and the new flex box properties to make a pure css flyout menu. It validates but not sure as to what the future might be for this trick. I'd rather not turn to javascript so for now I'm thinking about deploying this menu. Take a look at demo at chicagophil.com. So far I know Opera browser doesn't work but firefox, safari, and chrome all seem a go. What are your thoughts?

Share this post


Link to post
Share on other sites

It looks fine to me; I'm using Opera 12.16 and it works fine. CSS3 user-select doesn't work in Opera mini however. You may want to add some prefixr to your code however to account for older browsers.

 

e.g.

 

label {

cursor: pointer;

 

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

height: 30px;

position: absolute;

width: 40px;

top: 0px;

}

 

 

#content {

display: block;

clear: both;

width: 100%;

background-color: lightblue;

padding: 8px;

min-width: 90%;

 

-webkit-box-sizing: box-border;

-moz-box-sizing: box-border;

-ms-box-sizing: box-border;

box-sizing: box-border;

}

Share this post


Link to post
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...

×
×
  • Create New...