CSS Framework Articles

Page 43 of 45

Bootstrap 4 .border-secondary class

Alex Onsman
Alex Onsman
Updated on 16-Jun-2020 271 Views

Use the border-secondary class in Bootstrap 4 to add a gray border to an element.Set the border as −   Gray border I have styled our element as shown in the following code snippet − .test {   width: 200px;   height: 150px;   margin: 10px; } You can try to run the following code to implement the border-secondary class −ExampleLive Demo       Bootstrap Example                             .test {       width: 200px;       height: 150px;       margin: 10px;     }       Rectangle   Gray border

Read More

How to include Bootstrap Plugins on a website

Arjun Thakur
Arjun Thakur
Updated on 15-Jun-2020 157 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.

Read More

How to use Bootstrap Alert Plugins

Vrundesha Joshi
Vrundesha Joshi
Updated on 12-Jun-2020 184 Views

Alert messages are used to display information such as warning or confirmation messages to the end users. You can try to run the following code to implement alert plugins in Bootstrap − Example           Bootstrap Example                                              ×          Success! the result is successful.                        $(function(){             $("#myAlert").bind('closed.bs.alert', function () {                 alert("Alert message box is closed.");             });          });           

Read More

Bootstrap responsive utility classes

Samual Sam
Samual Sam
Updated on 12-Jun-2020 266 Views

The following are the classes available for responsive utility classes in Bootstrap −ClassesDevices.visible-xsExtra small (less than 768px) visible.visible-smSmall (up to 768 px) visible.visible-mdMedium (768 px to 991 px) visible.visible-lgLarger (992 px and above) visible.hidden-xsExtra small (less than 768px) hidden.hidden-smSmall (up to 768 px) hidden.hidden-mdMedium (768 px to 991 px) hidden.hidden-lgLarger (992 px and above) hidden

Read More

How to use Bootstrap Affix Plugins

Nancy Den
Nancy Den
Updated on 12-Jun-2020 321 Views

The affix plugin allows a to become affixed to a location on the page. You can also toggle it's pinning on and off using this plugin.The affix plugin toggles between three classes, each representing a particular state − .affix, .affix-top, and .affix-bottom. Follow the below steps to set your CSS for either of the above usage options.To start, the plugin adds .affix-top to indicate the element is in its top-most position. At this point, no CSS positioning is required.Scrolling past the element you want affixed should trigger the actual affixing. This is where .affix replaces .affix-top and sets position: ...

Read More

What are Bootstrap Transition Plugins

Anvi Jain
Anvi Jain
Updated on 12-Jun-2020 258 Views

Transition.js is a basic helper for transitionEnd events as well as a CSS transition emulator. It is used by the other plugins to check for CSS transition support and to catch hanging transitions.If you want to include this plugin functionality individually, then you will need transition.js once alongside the other JS files.

Read More

What is Bootstrap Plugins

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 500 Views

Bootstrap comes bundled with 12 jQuery plugins that extend the features and can add more interaction to your site.By utilizing Bootstrap Data API, most of the plugins can be triggered without writing a single line of code.Bootstrap Plugins can be included on your site in the following two forms −Individually − Using 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 ...

Read More

Tabs With Dropdown Bootstrap Example

Ankith Reddy
Ankith Reddy
Updated on 12-Jun-2020 1K+ Views

To create tabs with Bootstrap, use the .nav and .nav-tabs classes. With that use the .dropdown-menu class. Start with a basic unordered list with the base class of .nav Add the class .nav-tabs. Now add an unordered list with a .dropdown-menu class. You can try to run the following code to create tabs with drop-down − Example        Bootstrap Example                          Website            Home       About                           Products                                        Online Compiler           Image Editor           Document Viewer                       Services       Contact        

Read More

Bootstrap Form Control States

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 388 Views

Bootstrap offers to style for disabled inputs and classes for form validation, Input FocusWhen an input receives: focus, the outline of the input is removed and a box-shadow is applied.Disabled lnputsIf you need to disable an input, simply adding the disabled attribute will not only disable it; it will also change the styling and the mouse cursor when the cursor hovers over the element.Disabled FieldsetsAdd the disabled attribute to a to disable all the controls within the at once.Validation StatesBootstrap includes validation styles for errors, warnings, and success messages. To use, simply add the appropriate class to the parent element.

Read More

Bootstrap code tag styling

Arjun Thakur
Arjun Thakur
Updated on 12-Jun-2020 309 Views

Using Bootstrap, you can easily display code with and tag.The tag displays code wrapped as an inline element.To display code with the tag, you can try to run the following code −Example     is wrapped as an inline element.

Read More
Showing 421–430 of 445 articles
Advertisements