Lakshmi Srinivas has Published 315 Articles

How to style images with CSS?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:44:40

275 Views

To style images with CSS, you need to use properties such as height, width, - moz-opacity, etc. Let us see how to create a transparent image with - moz-opacity CSS property:The -moz-opacity property of an image is used to set the opacity of an image. This property is used to ... Read More

Indent the first line of a paragraph in CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:39:47

3K+ Views

Use the text-indent property to indent the first line of a paragraph. Possible values are % or a number specifying indent space.ExampleYou can try to run the following code to indent the first line:                            This text will ... Read More

Control the flow and formatting of text with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:24:57

240 Views

The white-space property is used to control the flow and formatting of text.ExampleYou can try to run the following code to implement white-space property to control the flow of text:                            This text has a line break and ... Read More

Strikethrough text with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:05:18

1K+ Views

Use the text-decoration property to strikethrough text with CSS. You can try to run the following code to underline text:                            This will be striked through.          

Shorthand property to set the background in CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 08:58:06

80 Views

You can use the background property to set all the background properties at once such as background image position, repeat, etc:Example                            This parapgraph has fixed repeated background image.          

Which Measurement Unit should be used in CSS to set letter spacing

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 08:45:13

703 Views

To set letter spacing with CSS, use the em measurement unit.A relative measurement of the height of a font is em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em ... Read More

Attribute Selectors in CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 07:55:18

349 Views

You can also apply styles to HTML elements with particular attributes. The style rule below will match all the input elements having a type attribute with a value of text −input[type = "text"]{    color: #000000; }The following are the rules applied to attribute selector. p[lang] - Selects all paragraph elements with ... Read More

What is a Selector and how it is used in CSS?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 07:23:49

157 Views

A selector is an HTML tag at which a style is applied. This could be any tag like or etc.The following figure describes what a Selector is:Let us see an example of Type Selector, to set color:h1 {    color: #36CFFF; }

Comparison of CSS versions

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 07:21:17

1K+ Views

Cascading Style Sheets, level 1 (CSS1) was came out of W3C as a recommendation in December 1996. This version describes the CSS language as well as a simple visual formatting model for all the HTML tags.CSS2 became a W3C recommendation in May 1998 and builds on CSS1. This version adds ... Read More

How to use FastClick with jQuery Mobile the right way in HTML?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 07:01:08

127 Views

There is no need to use 3rd party plugins like Fastclick. jQuery Mobile solved this with vclick event.JQuery works well on mobile and desktop and don’t have 300 ms delay$(document).on('vclick', '#impButton', function(){ });

Advertisements