A special method of triangle (an amazing skill ~)

Source: Internet
Author: User

A special practice of triangle:

CSS:

Em{
Display:Block;
Font:0/0 "";
Border:6pxSolid;
Border-Color:# Fff #000;
}

Hmtl:

<Em> </em>

CodeSimple. You can also use the border color to easily create triangles in all directions!

This tip turns to ghost Fei's blog: http://www.planabc.net/2006/12/17/css_triangle/

The principle is definitely not needed to be explained!

The small triangles on most pages are mainly implemented by images.

For adding an empty tag or adding an image, the pros and cons of this label have their own opinions.

However, in terms of semantics, I think it is more inclined to process Background images.

Here is just an interesting technique to introduce.

 

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.