Found 6710 Articles for Javascript

Bootstrap Contextual classes

Arjun Thakur
Updated on 12-Jun-2020 12:53:55

2K+ Views

The Bootstrap Contextual Class allows you to change the background color of your table rows or individual cells.The following are the classes −ClassDescription.activeApplies the hover color to a particular row or cell.successIndicates a successful or positive action.warningIndicates a warning that might need attention.dangerIndicates a dangerous or potentially negative actionExampleThe following is an example of the active class −ExampleLive Demo           Bootstrap Table                                                                      Subject                Marks                Student                                                            Maths                90                Amit                                        Science                80                Aman                                        English                85                Rahul                                

LCM of an array of numbers in Java

George John
Updated on 25-Jun-2020 11:59:39

4K+ Views

L.C.M. or Least Common Multiple of two values, is the smallest positive value which the multiple of both values.For example multiples of 3 and 4 are:3 → 3, 6, 9, 12, 15 ...4 → 4, 8, 12, 16, 20 ...The smallest multiple of both is 12, hence the LCM of 3 and 4 is 12.ProgramFollowing example computes the LCM of array of numbers.Live Demopublic class LCMofArrayOfNumbers {    public static void main(String args[]) {       int[] myArray = {25, 50, 125, 625};       int min, max, x, lcm = 0;             for(int i = 0; i

Linear gradient with rainbow color

George John
Updated on 24-Nov-2023 01:23:07

1K+ Views

To create a linear gradient that looks like rainbow color, you can try to run the following code - Example                    #demo {             height: 100px;             background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);          }                     Linear Gradient       Rainbow    

Usage of CSS list-style-image property

karthikeya Boyini
Updated on 03-Feb-2020 07:33:54

57 Views

The list-style-image specifies an image for the marker rather than a bullet point or number. You can try to run the following code to implement list-style-image property:Example                            Karnataka          Hyderabad          

Usage of CSS list-style-position property

Chandu yadav
Updated on 03-Feb-2020 07:32:59

92 Views

The list-style-position property indicates whether the marker should appear inside or outside of the box containing the bullet points. If the text goes onto a second line, the text will wrap underneath the marker, for the value inside.Example If the text goes onto a second line, the text will be aligned with the start of the first line, for the value outside.                            Maths          Science          

Set marker outside of the box containing the bullet points with CSS

Ankith Reddy
Updated on 03-Feb-2020 07:32:20

262 Views

To set marker outside of the box containing the bullet points, use the list-style-position property with the value outside.Example The outside value means if the text goes onto a second line, the text will be aligned with the start of the first line                            Maths          Social Science          Physics                      Maths          Social Science          Physics          

Set marker inside of the box containing the bullet points with CSS

George John
Updated on 03-Feb-2020 07:31:33

564 Views

To set marker inside of the box containing the bullet points, use the list-style-position property with the value inside. The inside value means if the text goes onto a second line, the text will wrap underneath the marker. It will also appear indented to where the text would have started if the list had a value of outside.Example                            Maths          Social Science          Physics                      Maths          Social Science          Physics          

Set the distance between the marker and the text relating to that marker with CSS

Arjun Thakur
Updated on 03-Feb-2020 07:30:39

351 Views

The marker-offset property allows you to specify the distance between the marker and the text relating to that marker.Example You can try to run the following code to implement marker-offset property                            UK          US                      UK          US          

Specify all the list properties into a single expression with CSS

Samual Sam
Updated on 03-Feb-2020 06:58:11

123 Views

The list-style property allows you to specify all the list properties into a single expression.ExampleYou can try to run the following code to list all properties like list-style, type, etc in one line:                            Laptop          Desktop System                      Laptop          Desktop System          

Set image for bullet style with CSS

Chandu yadav
Updated on 03-Feb-2020 07:09:41

491 Views

The list-style-image allows you to specify an image so that you can use your own bullet style.ExampleYou can try to run the following code to set an image for bullet with CSS                            Football          Cricket          

Advertisements