<div class=" affix popover right" id ="one" style="margin-left:8em;margin-top:10em; width:15em;background-color:rgba(228,19,47,0.9);padding:5px;border-radius:10px;"> <div class="arrow" style="margin-top:-45px;"></div> <center style="padding:20px;"><b>this is the message</b></center> </div>
This code creates the popover with a arrow how can we change the color of this arrow.
You might want to change the content of the :after element of the . accordion-button . Show activity on this post. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.
Positioning with Margins So to move the popover more to the left, we can add a negative margin-left, or a positive one to move it further to the right. Likewise, we can move the popover more up by adding a negative margin-top, and down by using a positive value.
How To Create a Popover. To create a popover, add the data-toggle="popover" attribute to an element. Note: Popovers must be initialized with jQuery: select the specified element and call the popover() method.
Use this css changing border-right color of pseudo element:
.popover.right .arrow:after { border-right-color: red; }
#DEMO
In Bootstrap 4,
.bs-popover-top .arrow::after, .bs-popover-auto[x-placement^="top"] .arrow::after { border-top-color: yellow; // Any color here }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With