Karthikeya Boyini has Published 2193 Articles

Make the button size extra small with Bootstrap

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 14:18:27

4K+ Views

Use the .btn-xs class to create a button size extra small than the standard button.You can try to run the following code to make the size of a button extra smallExampleLive Demo           Bootstrap Example                                       The following are extra small buttons:                Exra Small Primary button                      Extra Small button          

Bootstrap .btn class

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 14:11:42

385 Views

Use the .btn class in Bootstrap to add a button to the web page.You can try to run the following code to implement a .btn classExampleLive Demo           Bootstrap Example                                             Result    

Bootstrap .btn-lg class

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 14:06:14

231 Views

To make a large button, use the .btn-lg class in Bootstrap.You can try to run the following code to implement the btn-lg classExampleLive Demo           Bootstrap Example                                                Large button          

Bootstrap Form Control States

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 14:00:57

353 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 ... Read More

Bootstrap .has-error class

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 13:52:44

3K+ Views

The has-error class allows you to set error for input.You can try to run the following code to implement the has-error classExampleLive Demo           Bootstrap Example                                                                      Input with error                                                                        

Checkbox-inline Bootstrap class

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 13:43:03

521 Views

Use .checkbox-inline class to a series of checkboxes for controls to appear on the same line.You can try to run the following code to implement the .checkbox-inline classExampleLive Demo           Bootstrap Forms                                       Best IDE (You can select more than one)                             NetBeans IDE                                 Eclipse IDE                    

Bootstrap Horizontal Form

karthikeya Boyini

karthikeya Boyini

Updated on 12-Jun-2020 13:20:13

2K+ Views

To create a horizontal form in Bootstrap, follow the below steps − Add a class of .form-horizontal to the parent element. Wrap labels and controls in a with class .form-group. Add a class of .control-label to the labels.You can try to run the following code to create a horizontal form in ... Read More

HTML5 Input type “number” in Firefox

karthikeya Boyini

karthikeya Boyini

Updated on 04-Jun-2020 09:35:44

898 Views

The min attribute of the input type number isn’t supported by Firefox, but it works correctly in Google Chrome.ExampleLet us see an example −           HTML input number                        Mention any number between 1 to 10                              

Understanding IndexOutOfRangeException Exception in C#

karthikeya Boyini

karthikeya Boyini

Updated on 13-Apr-2020 12:31:00

200 Views

It occurs when Index is outside the bounds of the array.Let us see an example. We have declare an array with 5 elements and set the size as 5.int[] arr = new int[5]; arr[0] = 10; arr[1] = 20; arr[2] = 30; arr[3] = 40; arr[4] = 50;Now, we try ... Read More

C# Program to read all the lines of a file at once

karthikeya Boyini

karthikeya Boyini

Updated on 10-Apr-2020 09:42:53

196 Views

Use ReadAllText() method to read all the lines of a file at once.Let’s say we have a file “hello.txt” with the following lines −One Two ThreeTo read the above file, add the path of the file as parameter.File.ReadAllText(myPath);Above, myPath had the file path.String myPath = "hello.txt";Let us see the complete ... Read More

Advertisements