Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use pseudo elements and Translational Transformation to implement prompt Box in css

Shulou Source: shulou.com Published: 2022-06-01 04:01:08 09月22日 Update

This article is about how css uses pseudo-elements and translation transformations to implement prompt boxes. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

TOOLTIP TOP Lorem ipsum dolor sit amet. Tooltip. Tooltip-content::after {background: # 05a8ff; content: "; height: 10px; position: absolute;-webkit-transform: rotate (45deg); transform: rotate (45deg); width: 10px }. Tooltip.top. Tooltip-content {bottom: calc (100% + 1.5em); left: 50%;-webkit-transform: translateX (- 50%); transform: translateX (- 50%);}. Tooltip.top. Tooltip-content::after {bottom:-5px; left: 50%; margin-left:-5px;}

Thank you for reading! On "css how to use pseudo elements and translation transformation to achieve the prompt box" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Elements transformations translations tips content more articles good practical articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Redmi Microsoft vpn Shulou Information