Data Structure
 Networking
 RDBMS
 Operating System
 Java
 MS Excel
 iOS
 HTML
 CSS
 Android
 Python
 C Programming
 C++
 C#
 MongoDB
 MySQL
 Javascript
 PHP
- Selected Reading
 - UPSC IAS Exams Notes
 - Developer's Best Practices
 - Questions and Answers
 - Effective Resume Writing
 - HR Interview Questions
 - Computer Glossary
 - Who is Who
 
Front End Technology Articles - Page 464 of 860
 
			
			225 Views
To convert an image to Grayscale in CSS3, use the grayscale value for filter property.ExampleLet us see an example − Live Demo img.demo { filter: brightness(120%); filter: contrast(120%); filter: grayscale(130%); } Spring Framework Learn MySQL Below image is brighter and has more contrast than the original image above. With that the image is in grayscale: Output
 
			
			270 Views
The slideDown() method in jQuery is used to display the selected elements.SyntaxThe syntax is as follows −$(selector).slideDown(speed, easing, callback)Above, the parameter speed is the speed of the slide effect. Here, easing is the speed of the element in different points of the animation, whereas callback is a function to be executed after slideDown() completes.ExampleLet us now see an example to implement the jQuery slideDown() method − Live Demo $(document).ready(function(){ $(".button1").click(function(){ $("p").slideUp(); }); $(".button2").click(function(){ $("p").slideDown(); }); }); ... Read More
 
			
			246 Views
The RGBA color value is for Red, Green, Blue and Alpha. The alpha is the color opacity i.e. a number between 0.0 and 1.0. Here, 1.0 would be for full opaque. Here, we can see the difference in opacity created with the Alpha parameter in RGBA. Syntax The following is the syntax of the RGBA Color Values − rgba(red, green, blue, alpha) Above, the following values are added to the rgba() method. Red Set the color as an − Integer between 0 and 255. Percentage between 0% and 100% Green Set the color as an − ... Read More
 
			
			140 Views
The innerWidth() method in jQuery is used to return the inner width of an element. The method includes padding, but the border and margin aren’t included.SyntaxThe syntax is as follows −$(selector).innerWidth()ExampleLet us now see an example to implement the jQuery innerWidth() method − Live Demo $(document).ready(function(){ $("button").click(function(){ document.getElementById("demo").innerHTML = "Inner Width of DIV = " + $("div").innerWidth() }); }); Demo Box Inner Width of div OutputThis will produce the following output −Click the button to get inner width −
 
			
			16K+ Views
To set image brightness in CSS, use filter brightness (%). Remember, the value 0 makes the image black, 100% is for original image and default. Rest, you can set any value of your choice, but values above 100% would make the image brighter. The filter property is used to set visual effects, such as drop shadow, contrast, brightness, saturation, shadow to images in CSS. The following is the syntax − Syntax filter: none | drop-shadow() | blur() | brightness() | contrast() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia() | url(); As you ... Read More
 
			
			139 Views
The innerHeight() method in jQuery is used to return the inner height. It includes padding, but border and margin are ignored.SyntaxThe syntax is as follows −$(selector).innerHeight()ExampleLet us now see an example to implement the jQuery innerHeight() method− Live Demo $(document).ready(function(){ $("button").click(function(){ document.getElementById("demo").innerHTML = "Inner Height of DIV = " + $("div").innerHeight() }); }); Demo Box Inner Height of div OutputThis will produce the following output−Click the button to get Inner Height−
 
			
			324 Views
Use the columns property in CSS3 to set the column count and width. It is a shorthand property for column-width and column-count properties. With that, you can set both the properties separately as well. The column property The column property works as a shorthand property for the column-with and column-count properties. The following is the syntax − columns: auto|column-width column-count|initial|inherit; Example Let us see an example to set the columns property to set. This sets both the column width and count to the auto value − ... Read More
 
			
			181 Views
The element +next selector in jQuery is used to select the "next" element of the specified "element".SyntaxThe syntax is as follows −("ele + next")Above, ele is any valid selector, whereas the next parameter is used to specify the element that should be the next element of the element parameterExampleLet us now see an example to implement the jQuery element +next selector − Live Demo $(document).ready(function(){ $("div + p").css("color", "orange"); }); div { border:1px solid black; padding:10px; } Demo Heading This is demo text. span outside ... Read More
 
			
			177 Views
To set a column gap on a web page, use the column-gap property. You can set the values as − column-gap: length|normal|initial|inherit; The values can be − length − The gap between the columns normal − A normal gap between the columns Gap between the columns To set a gap between the columns, we have set a length unit i.e. − column-gap: 25px; Example Let us see an example to set a gap between the columns − .demo { ... Read More
 
			
			244 Views
For styling the tables with CSS, we can set borders, collapse, set width and height. We can also set the padding, alig text in it, etc. Let us see some examples −ExampleTo add borders to a table in CSS, use the borders property. Let us now see an example − Live Demo table, th, td { border: 2px dashed orange; } Team Ranking Table Team Rank Points India 1 200 England 2 180 Australia 3 150 NewZealand 4 130 SouthAfrica 5 100 ... Read More