Add Background Color to Active List Item in Bootstrap List Group

Arjun Thakur
Updated on 15-Jun-2020 07:17:26

1K+ Views

Use the .active class to add gray background color to the active list item in a list group in Bootstrap.You can try to run the following code to add background color to the active list item −ExampleLive Demo           Bootstrap Example                                          Features of Java                       Interface             Multi-threading             Packages             Collection             Serialization                    

Add Gray Background Color to Active Link in Bootstrap Navbar

Krantik Chavan
Updated on 15-Jun-2020 07:15:32

679 Views

To add gray background color to the active link, use the .active class in Bootstrap.You can try to run the following code to implement .active class −ExampleLive Demo           Bootstrap Example                                                                      Website                                        Home                Tutorials                Quiz                                            Demo          This is demo text.          

Remove Default List Style in Bootstrap

Chandu yadav
Updated on 15-Jun-2020 07:13:10

29K+ Views

To remove the list styles in Bootstrap, use the .list-unstyled class.You can try to run the following code to implement the .list-unstyled class −ExampleLive Demo           Bootstrap Example                                          Technologies                       Home             PHP             Java             jQuery             JavaScript             Ruby                                Technologies (Unstyled)                       Home             PHP             Java             jQuery             JavaScript             Ruby                    

What is an Exclamation Operator in JavaScript

Alankritha Ammu
Updated on 15-Jun-2020 07:12:10

2K+ Views

The exclamation operator is to perform negation on an expression.ExampleYou can try to run the following code to learn how to implement exclamation(!) operator in JavaScript −Live Demo           JavaScript Boolean                        var answer = true;          document.write(answer);          document.write(""+!answer);          

Nested Media Lists with Bootstrap

Smita Kapse
Updated on 15-Jun-2020 07:12:06

508 Views

Use the .media-list property to set nested media lists.You can try to run the following code to implement .media-list property −ExampleLive Demo           Bootstrap Example                                                      Tutorials          The following are the tutorials:                                                                                                                                                             Tutorials                   We have text tutorials in Python Data Science, Java i18n, GitLab, TestRail, VersionOne, DBUtils, Common CLI, Seaborn, Ansible, LOLCODE, Current Affairs 2018, Apache Commons Collections, etc.                                                                                                                                                                                         Video TutorialsWe have video tutorials for WordPress, Photoshop, Magento, Eclipse, NetBeans, Drupal, Joomla, etc.                                                                                        

Convert Boolean to Integer in JavaScript

Ayyan
Updated on 15-Jun-2020 07:11:35

449 Views

Yes, it is possible to convert Boolean to Integer in JavaScript, using the Ternary Operator.ExampleYou can try to run the following code to convert Boolean to Integer −Live Demo           JavaScript Boolean                        var answer = true;          document.write(answer);          var pass_marks = answer ? 90 : 40;          document.write("Passing Marks: "+pass_marks);          

Align Media Objects with Bootstrap

Ankith Reddy
Updated on 15-Jun-2020 07:10:54

197 Views

To align media objects, use the .align class in Bootstrap. You can try to run the following code to implement the .align class.Use the .align-left class to align media to the left −ExampleLive Demo           Bootstrap Example                                          Google Tag Manager Tutorial                                                                              Introduction                Google Tag Manager (GTM) is a free tool that makes it easy for marketers to add and update website tags.                                

Media Object in Bootstrap

Nitya Raut
Updated on 15-Jun-2020 07:09:39

186 Views

Use the .media-object class in Bootstrap to set the media object −ExampleLive Demo           Bootstrap Example                                          Lolcode Tutorial                                                                              Introduction                LOLCODE is an esoteric programming language inspired by the funny things on the Internet. It is designed to test the boundaries of programming language design.                                

Constructor to Create String Object in JavaScript

Akshaya Akki
Updated on 15-Jun-2020 07:09:25

183 Views

To create a String object in JavaScript, use string.constructor. A constructor returns a reference to the string function that created the instance's prototype.ExampleYou can try to run the following code to create a String object with the constructor −Live Demo           JavaScript String constructor Method                        var str = new String( "This is string" );          document.write("str.constructor is:" + str.constructor);          

Include Bootstrap Plugins on a Website

Arjun Thakur
Updated on 15-Jun-2020 07:08:24

151 Views

To include Bootstrap plugins on a website, consider any of the below form −IndividuallyUsing Bootstrap's individual *.js files. Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs.Compiled (all at once)Using bootstrap.js or the minified bootstrap.min.js. Do not attempt to include both, as both bootstrap.js and bootstrap.min.js contain all plugins in a single file.

Advertisements