<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
>
<
link
rel
=
"stylesheet"
href
=
<
style
>
body {
margin-left: 5px;
margin-right: 30px;
}
</
style
>
</
head
>
<
body
>
<
h1
style
=
"color:green;text-align:center;"
>
GeeksforGeeks
</
h1
>
<
h2
style
=
"text-align:center;"
>
Primer CSS Pop over
</
h2
>
<
div
class
=
"container"
>
<
div
class="d-flex flex-justify-center
flex-items-center"
style
=
"margin:2em;"
>
<
div
class
=
"position-relative text-center"
>
<
button
class
=
"btn btn-primary"
>
Popover
</
button
>
<
div
class="Popover right-0
left-0 position-relative">
<
div
class="Popover-message text-left
p-4 mt-2 mx-auto Box color-shadow-large">
<
h4
class
=
"mb-2"
>Popover heading</
h4
>
<
p
>Sample message</
p
>
<
button
type
=
"submit"
class
=
"btn btn-outline mt-2 text-bold"
>
Ok
</
button
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"position-relative text-center"
style
=
"margin:2em;"
>
<
div
class
=
"Popover position-relative"
>
<
div
class="Popover-message Popover-message--bottom
p-4 mx-auto mb-2 color-shadow-large">
<
h4
class
=
"mb-2"
>Popover heading</
h4
>
<
p
>Sample message</
p
>
<
button
type
=
"submit"
class
=
"btn btn-outline mt-2 text-bold"
>
Ok
</
button
>
</
div
>
</
div
>
<
button
class
=
"btn btn-primary"
>
Popover bottom
</
button
>
</
div
>
<
div
class
=
"Popover position-relative"
style
=
"margin:2em;"
>
<
div
class="Popover-message Popover-message--right
p-4 mr-2 color-shadow-large">
<
h4
class
=
"mb-2"
>Popover heading</
h4
>
<
p
>Sample message</
p
>
<
button
type
=
"submit"
class
=
"btn btn-outline mt-1 text-bold"
>
Ok
</
button
>
</
div
>
</
div
>
<
button
class
=
"btn btn-primary"
>
Popover right
</
button
>
</
div
>
<
div
class="d-flex flex-justify-center
flex-items-center"
style
=
"margin:2em;"
>
<
button
class
=
"btn btn-primary"
>
Popver Left
</
button
>
<
div
class
=
"Popover position-relative"
>
<
div
class="Popover-message Popover-message--left
p-4 ml-2 color-shadow-large">
<
h4
class
=
"mb-2"
>Popover heading</
h4
>
<
p
>Sample message</
p
>
<
button
type
=
"submit"
class
=
"btn btn-outline mt-2 text-bold"
>
Ok
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
body
>
</
html
>