Notice: Undefined variable: root in /users/basti1012/www/index1.php on line 41
Webseiteninhalte neben Sidebar platzieren

Webseiteninhalte neben Sidebar platzieren

Gerne hätte ich den Inhalt der Webseite neben der Sidebar stehen. Wie gehe ich da am Besten vor? Benutzte Technologien bisher ASP.NET Core, Razor, JavaScript und Bootstrap.

Der hier verwendete Code

<!DOCTYPE html> <html lang="de-DE"> <head> <style> body { padding-top: 50px; padding-bottom: 20px; } /* Wrapping element */ /* Set some basic padding to keep content from hitting the edges */ .body-content { padding-left: 15px; padding-right: 15px; } /* Carousel */ .carousel-caption p { font-size: 20px; line-height: 1.4; } /* Make .svg files in the carousel display properly in older browsers */ .carousel-inner .item img[src$=".svg"] { width: 100%; } /* QR code generator */ #qrCode { margin: 15px; } th.header { padding-bottom: 15px; } .spaceUnder > td { padding-bottom: 1em; } .tblcolspace { padding-left: 3em; } .wrapper { display:flex; width: 100%; } #sidebar { min-width: 200px; max-width: 19%; min-height: 100vh; background: #7386D5; color: #fff; transition: all 0.3s; } #sidebar.active { margin-right: -250px; } #sidebar .sidebar-header { padding: 20px; background: #6d7fcc; } #sidebar ul.components { padding: 20px 0; border-bottom: 1px solid #47748b; } #sidebar ul p { color: #fff; padding: 10px; } #sidebar ul li a { padding: 10px; font-size: 1.1em; display: block; } #sidebar ul li a:hover { color: #7386D5; background: #fff; } #sidebar ul li.active > a, a[aria-expanded="true"] { color: #fff; background: #6d7fcc; } a[data-toggle="collapse"] { position: relative; } /* Hide/rearrange for smaller screens */ @media screen and (max-width: 767px) { /* Hide captions */ .carousel-caption { display: none; } } .main1{ width:100%; display:flex; flex-direction:row; } .rechts{ padding:10px; width:80%; } </style> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <environment exclude="Development"> <link rel="stylesheet" href="/css_webseite/bootstrap.css" asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css" asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">SaigkillsBacktrace</a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" asp-controller="About" asp-action="Index">About <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a asp-area="" asp-controller="About" asp-action="About_Me">About me</a></li> <li><a asp-area="" asp-controller="About" asp-action="Publications">Publications</a></li> <li><a href="#">Page 1-3</a></li> </ul> </li> <li><a href="#">Page 2</a></li> <li><a href="#">Page 3</a></li> <li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li> <li><a asp-area="" asp-controller="Projects" asp-action="Index">Projects</a></li> <li><a asp-area="" asp-controller="Projects" asp-action="Hoe_Manns">hoe-manns</a></li> </ul> </div> </div> </nav> <div class="main1"> <div id="sidebar" class="wrapper"> <nav id="side-1" class="sidebar"> <div class="sidebar-header"> <h3>About this Website</h3> <p>This is a private Website from Sascha Manns. It discusses all of my interests, like Programming in Ruby, Python, Java, Android and .NET. I’ll post Topics round About Linux, Windows and Technologies of both.</p> </div> </nav> </div> <div class="rechts"> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad </div> </div> <div class="container body-content"> <hr /> <footer> <p>© 2017 - @DateTime.Now.Year - SaigkillsBacktrace by Sascha Manns.</p> <p>The content of this Blog can reused under the rules of the</p> <p>Built with ASP.NET Core 2.0, MVC 6, VueJS, Entity Framework Core 2.0, TypeScript, Bootstrap 4, and Hosted on Azure.</p> </footer> </div> </body> </html>