The CSS style can be set to a character in vertically half or horizontally half both. Add a class on the text and the class contains CSS style to apply half of the character. The accessibility of the main text is preserved with screen readers for the blind or visually impaired.
You need to do the following things to apply CSS to half of a character:
- Procedure to style half of a character or letter.
- Procedure to apply CSS to 50% of a character
- You Just need to apply the class .halfStyled to each element, which contains the character you want to be half-styled.
There are two popular ways to style half of a character.
- Using HTML and CSS
- Using HTM, CSS and jQuery
Example 1: This example uses HTML and CSS to style half of character.
Example 2: This example uses HTML, CSS and jQuery to style half of character.
- How to style a dropdown using CSS?
- How to style a checkbox using CSS?
- p5.js | style() Function
- HTML | Style Tag
- CSS | transform-style Property
- AngularJS | ng-style Directive
- How to combine ng-class with ng-style?
- CSS | border-top-style Property
- HTML | style attribute
- CSS | list-style Property
- HTML | DOM Style top Property
- HTML | DOM Style right Property
- CSS | font-style Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : shubham_singh