How to make text vertical display in HTML? A summary of several ways to implement vertical style of text

Source: Internet
Author: User
A text style is a set of text settings that can be saved with a graphic, including font settings, special effects, and so on. Text styles are displayed differently in different software environments. Here's how to get the text vertical in HTML? A summary of several ways to implement vertical style of text

CSS text styles that must be mastered

Font family

Serif font serif

Sans Serif font Sans-serif
Generally for compatibility with one of the above, to avoid the current system does not have a font set

I. Vertical text Setting method

1. Js+css To achieve a three-dimensional button text Vertical menu effect

This is a better vertical menu, a three-dimensional effect of the menu, do not think those with stereoscopic effects of the menu is a button ah, in fact, it is the use of JavaScript code to decorate the button, the mouse on the time will have obvious three-dimensional text effect, vertical arrangement, can also be modified to horizontal.

The results are as follows:

2. 4 kinds of CSS text vertical row method

Sometimes, we need to the text of a certain area of the page vertical, vertical arrangement, the landscape of course everyone is accustomed to, for the vertical row, a time can not find ideas, hehe, in fact, and horizontal as simple, the following 4 ways to achieve the CSS text vertical row.

The first method: Place the characters that need to be displayed vertically in span, set the display property of span in CSS to block, but this is not recommended because it is a bit cumbersome.

3. How CSS implements text vertical effects

Text vertical Although not commonly used, but not without this aspect of the requirements, but the existing CSS property support is not high or compatibility is not good, really did not find the right way to achieve this effect, the following share a JavaScript implementation of the effect, we can learn from it, the effect is very good. The code example is as follows:

4. How do I vertically arrange my english in table?

Those are all from the top down, similar to the clockwise; I want English words, bottom reading, the equivalent of counterclockwise.

5. JS implementation of the Flash effect of the vertical navigation code

This is a JS+CSS implementation of the Flash effect of the navigation menu, vertical arrangement, good compatibility, by the JavaScript wonderful class friends to write, welcome to test.

6. JS implementation with 3D stereoscopic gray-Silver vertical folding Menu Code

This is a super cool can be used to the left of the Web page of gray-level vertical multi-fold menu, you can add a background to the menu, CSS reserved code, which is the comparison standard and classic a background management mode of the menu, DIV+CSS structure, in line with the standard, easy to modify, very good.

Ii. related questions and answers:

1. Python-tkinter label How to change the text style in the label, for example to add strikethrough to text

2. JavaScript-are there any JS libraries that display text effects (non-compositing) on the image?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.