IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Gcobani Mkontwana
1k
1.2k
97.9k
Modal popup is stretched away from the original center
Dec 7 2020 4:55 AM
Hi Team
I need some help to prevent my popup modal form, when its clicked it stretched far away from the original layout and makes it difficult to see other controls. Let me share my front end code.
<
button
type
=
"button"
class
=
"btn btn-primary"
data-toggle
=
"modal"
data-target
=
"#exampleModal"
>
People
</
button
>
<
div
class
=
"modal fade"
id
=
"exampleModal"
tabindex
=
"-1"
role
=
"dialog"
aria-labelledby
=
"exampleModalLabel"
aria-hidden
=
"true"
>
<
div
class
=
"modal-dialog"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h1
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Add people
</
h1
>
<
button
type
=
"button"
class
=
"close"
data-dismiss
=
"modal"
aria-label
=
"Close"
>
<
span
aria-hidden
=
"true"
>
×
</
span
>
</
button
>
</
div
>
</
div
>
Reply
Answers (
2
)
avoid anchor tag to append # on url.
Get url parameter in html page using javascript.