<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cba9a4a4bfb8bfb9aabb8bfee5f8">[email protected]</a>/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="33515c5c47404741524373061d00">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<p class="bg-primary text-white">
This is an example paragraph for text selection!
</p>
</div>
</div>
</div>
</body>
</html>
When the background color is set to bg-primary
and the text color to text-white
of the paragraph element, text selections by the mouse go unnoticed.
Are there any Bootstrap classes to change the text selection colors? How can we change text selection colors by Bootstrap way?