I want to be able to scroll through the div content without scrollbar visible. Below is the code snippet,
.topic_editor {
background-color: $light_gray;
height: 100%;
overflow: auto;
header {
display: flex;
justify-content: space-between;
align-items: center;
.back {
margin-right: 10px;
}
h4 {
flex-grow: 1;
overflow: hidden;
}
}
form {
height: calc(100% - 105px);
.viewpoint_thumb {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 105px;
height: 105px;
border: 2px solid blue;
cursor: pointer;
img {
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
}
.fields {
padding: $padding $gutter $padding $gutter;
background-color: #fff;
flex-grow: 1;
textarea {
overflow: auto;
}
}
.actions {
padding: 8px;
background-color: gray;
border-top: 2px solid $color;
display: flex;
justify-content: flex-end;
position: sticky;
bottom: 0px;
}
html code below,
<div class="topic_editor">
<header>
<button class="button"></button>
<h4>new</h4>
</header>
<form>
<div class="fields">
<label>
<span>Name</span>
<input name="name" type="text">
</label>
<label>
Description
<textarea name="text"></textarea>
</label>
</div>
<div class="actions">
<button> Cancel</button>
<button type="submit"></button>
</div>
</form>
</div>
Within the form div element i have input fields which add dynamically. The content of form element overflows and the cta button cancel and ok are not seen. How can i set the div element (form or form-container) such that the user would be able to scroll through the form fields and at the same time the scroll bar is not visible. I have tried hiding scrollbar using webkit-scrollbar none. But the firefox doesnot support hiding scrollbar without css.