1

When creating a brand new Asp.Net MVC application with bootstrap 4.3.1 the default landing page contains a vertical scrollbar - which is silly, since the content nicely wraps and the footer is always visible?

enter image description here

trailmax
  • 31,605
  • 20
  • 126
  • 225
Kommando1980
  • 89
  • 2
  • 10
  • I think I have found a solution, tweaking the default site.css as follow: html { position: relative; /*min-height: 100%;*/ min-height: calc(100% - 1px); } – Kommando1980 Sep 06 '19 at 08:02
  • 1
    Possible duplicate of [Hiding the scroll bar on an HTML page](https://stackoverflow.com/questions/3296644/hiding-the-scroll-bar-on-an-html-page) – Mark Redman Sep 06 '19 at 08:02

2 Answers2

0

This is probably a css issue?

What have you tried, you should try and show things you've tried so we are not repeating this.

Have you tried setting overflow:hidden

<style type="text/css">
    body {
        overflow: hidden;
    }
</style>
Mark Redman
  • 22,537
  • 19
  • 88
  • 134
0

I think this is a solution (it took care of my unnecessary vertical scrollbar ...)

Tweaking the site.css file 1. changed the min-height: 100% to instead do a calc(100% - 1px)...

html {
  position: relative;
  /*min-height: 100%;*/
  min-height: calc(100% - 1px);
}
Kommando1980
  • 89
  • 2
  • 10