0

I am trying to use the css min-width property for a div wrapper, however, using Semantic UI seems to hide the horizontal scrollbar.

By removing the link tag in the CodePen below reveals the problem with Semantic UI.

CodePen

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.min.css"/>
<div id="wrapper"></div>


#wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #ff0000;
  min-width: 2500px;
  min-height: 1000px;
}

Any idea on how I can fix this problem while still using Semantic UI?

1
  • It seems Semantic has the body css property overflow-x: hidden; Commented Mar 4, 2016 at 23:17

1 Answer 1

1

In your concrete case semantics adds overflow-x: hidden to <body>.

Just add CSS:

body {
  overflow-x: scroll !important;
}

http://codepen.io/anon/pen/MyaQXM

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.