Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by George John
Page 37 of 79
Bootstrap form structure
To create a form in Bootstrap,Add a role form to the parent element.Wrap labels and controls in a with class .form-group. This is needed for optimum spacing.Add a class of .form-control to all textual , , and elements.You can try to run the following code to create a form −Example Bootstrap Forms Full Name Subject File input Example block-level help text here. Notification about our products Submit
Read MoreCreate a large button group with Bootstrap
To create a large button group in Bootstrap, use the .btn-group-lg class.You can try to run the following code to form a large button group −Example Bootstrap Example The following are the car brands: BMW Audi Jeep Datsun Toyota The following are FMCG: ITC Limited Colgate-Palmolive Nestle Britannia Industries Limited
Read MoreCenter any element in Bootstrap
Use the .center-block class in Bootstrap to center an element.You can try to run the following code to implement the .center-block class:Example Bootstrap Example Heading One Text will be in center.
Read MoreBootstrap .form-control-static class
Use the class .form-control-static on a when you need to place plain text next to a form label within a horizontal form.You can try to run the following code to implement the .form-control-static class −Example Bootstrap Example Email: amit@example.com Password:
Read MoreUsage of Bootstrap class panel-success
The panel-success class in Bootstrap is a contextual state class to form a panel more meaningful to a particular context. It indicates success.You can try to run the following code to implement the panel-success class −Example Bootstrap Example Panel Title This is a demo panel!
Read MoreContainer for form input and label with Bootstrap
Use the .form-group class in Bootstrap to set a container for form input and label &minusExample Bootstrap Example Student Name Upload Resume Example block-level help text here. Next
Read MoreAdd hover color to background color of the table row in Bootstrap
To add hover color to background color of the table row, use the .active class in Bootstrap.Example Bootstrap Example Student Information Student Subject Tom Maths Amit Programming Steve Java
Read MoreHow to Initialize and Compare Strings in Java?
You can compare Strings using compareTo() method or, equals() method or, or == operator. Following example demonstrates how to initialize and compare strings in Java. Example public class StringDemo { public static void main(String[] args) { String str1 = "tutorials"; String str2 = "point"; // comparing str1 and str2 int retval = str1.compareTo(str2); // prints the return value of the comparison if (retval < 0) { System.out.println("str1 is greater than str2"); } else if (retval == 0) { System.out.println("str1 is equal to str2"); } else { System.out.println("str1 is less than str2"); } } } Output str1 is less than str2
Read MoreModular Exponentiation (Power in Modular Arithmetic) in java
The java.math.BigInteger.modPow(BigInteger exponent, BigInteger m) returns a BigInteger whose value is (thisexponent mod m). Unlike pow, this method permits negative exponents. You can calculate the modular Exponentiation using this method.Programimport java.math.*; public class BigIntegerDemo { public static void main(String[] args) { // create 3 BigInteger objects BigInteger bi1, bi2, bi3; // create a BigInteger exponent BigInteger exponent = new BigInteger("2"); bi1 = new BigInteger("7"); bi2 = new BigInteger("20"); // perform modPow operation on bi1 using bi2 and exp bi3 = bi1.modPow(exponent, bi2); String str = bi1 + "^" +exponent+ " mod " + bi2 + " is " +bi3; // print bi3 value System.out.println( str ); } }Output:7^2 mod 20 is 9
Read Moretable-bordered class in Bootstrap
To implement a table-bordered class, you can try to run the following code −Example Bootstrap Table Footballer Rank Footballer Rank Country Messi 1 Argentina Neymar 2 Brazil Ronaldo 3 Portugal
Read More