AmitDiwan has Published 11433 Articles

The ::before and ::after Pseudo-element in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 15:16:35

296 Views

The CSS ::before and CSS ::after Pseudo-element are used to insert some content before and after the element respectively. The ::after pseudo element If you want to insert a content after an element, then use the ::after pseudo-element. The content to be placed after is set using the content attribute ... Read More

text-justify Property in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 14:48:57

130 Views

The text-justify property in CSS is used to set the justification method of text when the text-align property is set to the justify value. Let us see the syntax − text-justify: value; The value here can be any of the following − auto− Sets automatically and the ... Read More

Text in Transparent Box using CSS3

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:49:02

909 Views

The opacity property is used to create a transparent textbox. Set an image in the transparent box using the background property. Since, we have set the opacity, it will make the text and image appearing in the text box to be transparent. Create a div container A div container is ... Read More

Styling Forms with CSS Attribute Selectors

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:47:26

251 Views

Apply styles to HTML elements with particular attributes using Attribute Selectors in CSS. Let us see which attribute selectors are available with the rules. The [attribute] Selector The [attribute] selector selects elements with a specified attribute. Here, the link with the attribute target is styled − a[target] { ... Read More

Styling First-Letters with CSS ::first-letter

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:45:42

1K+ Views

CSS can help us style the first letter of an element using the ::first-letter pseudo-element. Note that punctuation marks, digraphs and content property can change the first-letter. The following examples illustrate CSS ::first-letter pseudo-element. Style the first letter The first letter of all the elements, such as and ... Read More

Styling different states of a link using CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:39:43

126 Views

Using CSS pseudo selectors, namely, :active, :hover, :link and :visited, we can style different states of a link. For proper functionality, the order of these selectors is given by:- :link, :visited, :hover, :active. Syntax The syntax of CSS text-indent property is as follows − a:(pseudo-selector) { ... Read More

Standard Link Styles in CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:38:33

280 Views

We can style links as per our requirements. It is recommended that links have styles which distinguish them from normal text. The default link styles for different link states is as follows − Link State Color active #EE0000 focus #5E9ED6 or a similar shade ... Read More

Stacking Elements in Layers using z-index Property using CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:36:33

181 Views

Using CSS Z-Index property developer can stack elements onto one another. Z-Index can have a positive or a negative value. NOTE − If elements that overlap do not have z-index specified then that element will show up that is mentioned last in document. The following are some examples to implement ... Read More

Specify Word Breaking Rules using CSS3

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:34:01

112 Views

To specify word breaking rules in CSS3, use the word-break property. This property is used to break the line. Let us see the syntax − word-break: value; The values include normal − The default line break rules. break-all − The word is broken at any character ... Read More

Some Lesser-Known CSS Properties for Form Input Fields

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:32:36

91 Views

CSS caret-color, pointer-events and tab-size are some of the lesser-known properties for form input fields. caret-color property allows us specify color of blinking caret while pointer-events can help prevent the users to find an element. Finally, tab-size sets the amount of white space used by tab. The following examples illustrate ... Read More

Previous 1 ... 3 4 5 6 7 ... 1144 Next
Advertisements