Generate Your Own Playground
Type any CSS property and get a live, editable playground instantly.
The 'text-decoration' property in CSS is used to specify the decoration added to text, such as underlines, overlines, line-throughs, and none. This property can enhance the visual presentation of text, making it more readable or emphasizing certain elements. It is commonly used for links, headings, and other textual content.
.container { font-family: Arial, sans-serif; }
.combined { font-size: 50px; text-combine-upright: all; writing-mode: vertical-rl; text-orientation: upright; }The 'text-combine-upright' property in CSS is used to combine multiple characters into a single vertical glyph, which is particularly useful for displaying East Asian text. This property allows for better alignment and readability of characters in vertical writing modes, enhancing the overall aesthetic of the text layout.
.text-container {
width: 300px;
margin: 20px;
}
.justified-text {
text-align: justify;
text-align-last: right;
font-size: 16px;
line-height: 1.5;
padding: 10px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}The 'text-align-last' CSS property is used to control the alignment of the last line of a block of text. It works in conjunction with the 'text-align' property, allowing you to specify how the last line should be aligned differently from the rest of the text in the block. This is particularly useful for justified text, where you might want the last line to align to the left, right, or center instead of being justified.
.container {
width: 80%;
margin: auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
h1.centered-title {
text-align: center;
}
p.left-aligned {
text-align: left;
}
p.right-aligned {
text-align: right;
}The 'text-align' property in CSS is used to set the horizontal alignment of text within an element. It can take values such as 'left', 'right', 'center', and 'justify', allowing for flexible text presentation in web design.
.my-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.my-table th, .my-table td {
border: 1px solid #ccc;
padding: 10px;
text-align: left;
}
.my-table th {
background-color: #f2f2f2;
}The 'table-layout' CSS property defines the algorithm used to lay out table cells, rows, and columns. It can take values like 'auto' or 'fixed', where 'fixed' allows for a more predictable layout by setting the widths of columns explicitly, while 'auto' adjusts based on the content. This property is particularly useful for controlling the appearance of tables with varying content sizes.