Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
156
rated 0 times [  163] [ 7]  / answers: 1 / hits: 31248  / 12 Years ago, wed, march 6, 2013, 12:00:00

How can I add styling (let's say bold attribute) to the Hello world in this code:



bootbox.alert(Hello world!, function() {
Example.show(Hello world callback);
});


Thank you


More From » css

 Answers
21

The best thing to do is to inspect the popup with firebug and you can see the HTML that makes up the modal window, so you can write css for it. Looking at the example on their website, here is the html that makes up a basic example:



<div style=overflow: hidden; tabindex=-1 class=bootbox modal fade in aria-hidden=false>
<div class=modal-body>Hello world!</div>
<div class=modal-footer><a href=javascript:; class=btn btn-primary data-handler=0>OK</a></div>
</div>


So if you wanted to change the footer colour:



.modal-footer {background:#c00;}

[#79795] Tuesday, March 5, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
danae

Total Points: 26
Total Questions: 97
Total Answers: 112

Location: Oman
Member since Wed, Apr 12, 2023
1 Year ago
danae questions
;