Being new to the world of web design, I have a burning question that may have an easy solution that has evaded my notice. In my current project, I am attempting to create a div with a colored border using bootstrap. Specifically, I want to use a specific hex color for the border (let's say: #cc6666
). While the bootstrap website provides some information on border coloring, it seems that the options are limited to predefined choices like border-primary
or border-dark
, without a clear way to set a custom color.
Question: Is there a simple method to apply a custom hex color to bootstrap borders?
<!DOCTYPE html>
<html>
<body>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b7babaa1a6a1a7b4a595e0fbe4fbe6">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="border rounded border-primary">
<prompt>Lorem Ipsum</prompt>
</div>
<style type="text/css">
prompt {
color: #cc6666;
vertical-align: middle;
}
</style>
</body>
</html>