Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

횡스크롤 without 스크롤 #36

Open
JaeYeopHan opened this issue Jan 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@JaeYeopHan
Copy link
Owner

commented Jan 23, 2019

<ul>
  <li><a></a></li>
  <li><a></a></li>
  <li><a></a></li>
  <li><a></a></li>
  <li><a></a></li>
</ul>
ul {
  white-space: nowrap;
  overflow-x: scroll;
  -ms-overflow-style: none; // IE 10+
  overflow: -moz-scrollbars-none; // Firefox

  li {
    margin-right: 8px;
    display: inline-block;
    white-space: normal;

    a {
      display: block;
      padding: 14px 16px 16px 16px;
    }
  }
  li:last-child {
    margin-right: 0;
  }
}

ul::-webkit-scrollbar {
  display: none; // Safari and Chrome
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.