In this article we will learn about some of the frequently asked CSS programming questions in technical like “css text decoration” Code Answer’s. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error or stack handling on css was simple and easy. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in CSS. Below are some solution about “css text decoration” Code Answer’s.
css bold text
xxxxxxxxxx
1
.text {
2
font-weight: bold;
3
}
text-decoration css
xxxxxxxxxx
1
h1 {
2
text-decoration: overline;
3
}
4
5
h2 {
6
text-decoration: line-through;
7
}
8
9
h3 {
10
text-decoration: underline;
11
}
12
13
h4 {
14
text-decoration: underline overline;
15
}
text decoration none
xxxxxxxxxx
1
exampe{
2
text-decoration: none;
3
}
css underline
xxxxxxxxxx
1
text-decoration: underline;
line through in css
xxxxxxxxxx
1
x {
2
text-decoration: line-through;
3
}
css text decoration
xxxxxxxxxx
1
/******************* How to style your text? ************************/
2
3
tag_name {
4
5
text-decoration-line: underline; /* or overline; line-through; ... */
6
/*OR: */
7
text-decoration: underline overline dotted red; /* text-decoration-line (can be more than one); text-decoration-style; text-decoration-color; */
8
9
10
color: blue; /* Sets the color of the text */
11
12
text-decoration-color: yellow; /* Sets the color of the text decoration */
13
14
text-decoration-style: solid; /* Sets the style of the text decoration (like solid, wavy, dotted, dashed, double) */
15
16
font-style: italic; /* Specifies the font style for a text, like, if you want it as normal, italic, oblique,... */
17
18
font-size: 1.6em; /* Sets the size of the text */
19
20
letter-spacing: 5px; /* Sets the space between letters */
21
22
line-height: 20px /* Sets the space between lines */
23
24
font-family: "Times New Roman", Times, serif; /* specifies the font for an element. It can hold several font names as a "fallback" or stack system.
25
If the browser does not support the first font, it tries the next font */
26
27
28
text-shadow: 2px 2px 8px; /* horizontal_shadow; vertical_shadow; blur-radius; color|none|initial|inherit; */
29
/*OR */
30
text-shadow: 0 0 #FF0000; /* The blur is optional */
31
/*OR: */
32
text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF; /* Text-shadow with a red and blue neon glow */
33
34
35
text-indent: 40px; /* Indents the first line of text with different values (can be negative values) */
36
37
text-align: center; /* Specifies the horizontal alignment of text in an element,by choosing, for exemple, justify, right, left, ... */
38
39
overflow: hidden; /* Specifies what should happen if content overflows an element's box, by choosing, for exemple, visible; auto; scroll; ... */
40
41
white-space: nowrap; /* Specifies how white-space inside an element is handled, by choosing, for exemple, pre; normal; nowrap;... */
42
43
text-overflow: ellipsis; /* Specifies how overflowed content that is not displayed should be signaled to the user, for exemple, with 3 dots */
44
45
word-break: break-all; /* Specifies how words should break when reaching the end of a line, by choosing, for exemple, keep-all; normal; break-word; ... */
46
47
word-wrap: break-word; /* Allows long words to be able to be broken and wrap onto the next line. */
48
49
}
50