TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Paul Drake
NA
37
4.6k
CSS Bootstrap not working properly in ASP.net core mvc project
Dec 24 2020 6:25 AM
I'm having issues with my paragraph and my picture rendering in the same space. It's an asp.net 5 mvc project.
I'm using rider as my IDE.
Here is my layout source code.
<!DOCTYPE html>
<html lang=
"en"
>
<head>
<meta charset=
"utf-8"
>
<meta name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>@ViewData[
"Title"
] - Paul Drake's Website</title>
<link rel=
"stylesheet"
type=
"text/css"
href=
"lib/bootstrap/dist/css/bootstrap-grid.css"
>
<link rel=
"stylesheet"
type=
"text/css"
href=
"lib/bootstrap/dist/css/bootstrap.css"
>
<link rel=
"stylesheet"
type=
"text/css"
href=
"css/site.css"
>
</head>
<body>
<header>
<div
class
=
"container"
>
<div
class
=
"row"
>
<div>
<a href=
"files/Resume 2020.pdf"
>Resume</a>
</div>
<div
class
=
"col-6 text-center"
>
<h1>Paul Drake's Website</h1>
</div>
<div
class
=
"dropdown"
>
<button
class
=
"btn btn-secondary dropdown-toggle"
type=
"button"
id=
"dropDownMenuButton"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"False"
>My Projects</button>
<div
class
=
"dropdown-menu col-3"
aria-labelledby=
"dropDownMenuButton"
>
<a
class
=
"dropdown-item"
asp-controller=
"Movie"
asp-action=
"GetMovies"
>Streaming Movie App</a>
</div>
</div>
</div>
</div>
</header>
<main>
<div
class
=
"container"
>
@RenderBody();
</div>
</main>
<script src=
"~/lib/jquery/dist/jquery.min.js"
></script>
<script src=
"~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
></script>
<script src=
"~/js/site.js"
asp-append-version=
"true"
></script>
@await RenderSectionAsync(
"Scripts"
, required:
false
)
</body>
</html>
And here is my index page.
@{
ViewData[
"Title"
] =
"Paul Drake's Website"
;
}
<div
class
=
"row"
>
<div
class
=
"col-6"
>
<img src=
"./files/_DSC0630-Costco3.jpg"
alt=
"My Picture"
>
</div>
<div
class
=
"col-6"
>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Blandit volutpat maecenas volutpat blandit aliquam etiam erat velit. Faucibus
in
ornare quam viverra orci sagittis eu volutpat odio. Id cursus metus aliquam eleifend mi
in
nulla. Suspendisse sed nisi lacus sed viverra tellus
in
. Consectetur adipiscing elit pellentesque habitant morbi tristique senectus et netus. Ac feugiat sed lectus vestibulum mattis ullamcorper velit sed. Massa id neque aliquam vestibulum morbi. Nullam non nisi est sit amet. Donec pretium vulputate sapien nec sagittis. Integer malesuada nunc vel risus commodo viverra maecenas. Ullamcorper eget nulla facilisi etiam dignissim diam quis enim lobortis. Nisl pretium fusce id velit ut tortor. Accumsan sit amet nulla facilisi morbi tempus. Suspendisse sed nisi lacus sed viverra tellus
in
hac habitasse. Erat pellentesque adipiscing commodo elit at imperdiet dui accumsan sit. At quis risus sed vulputate odio ut enim blandit.</p>
</div>
</div>
Reply
Answers (
1
)
How to generate a number between 1 to 10 and insert into database
Browser not reading style sheets error404