Css3 border, background, text effect, and css3 border

Source: Internet
Author: User
Tags border image

Css3 border, background, text effect, and css3 border
Simple play CSS3 border, background, text effect 1, border box-shadow

Box-shadow: h-shadow v-shadow blur spread color inset (ontset); // h-shadow: horizontal shadow v-shadow: vertical shadow blur: fuzzy distance spread: shadow size color: shadow color inset (outset): Internal shadow/external shadow
Box-shadow: 5px 0 5px 0 #000 outset; //

Border-radius rounded corner
Border-radius: 1-4 length | %/1-4 length | %; // first parameter: horizontal radius second parameter: vertical radius border-radius: 50%/20%; // as follows

You can set different border rounded corners to implement a variety of border boxes.

Border-image
Border-image: border-image-source border-image-slice border-image-width border-image-outset border-image-repeat // border image url inside the border offset border width border image area beyond the border repeated), rounded, stretched)
Ii. background-size specifies the background image size
Background-size: length | percentage | cover | contain; // length: Set the width and height of the background image. percentage: Set the width and height of the background Image Based on the parent element percentage. cover: the background image is expanded to be large enough to completely overwrite the background image. contain: expands the image to the maximum size, so that its width and height fully adapt to the content area.
Background-clip specifies the "Draw" Area of the background
background-clip: border-box|padding-box|content-box;
Background-origin specifies the "location" Area of the background image
background-origin: padding-box|border-box|content-box;

PS: note the difference between background-origin and background-clip. One is the positioning area and the other is the drawing area.

 

3. text effect text-shadow text shadow effect
Text-shadow: h-shadow v-shadow blur color;
// H-shadow: horizontal shadow v-shadow: vertical shadow blur: fuzzy distance color: shadow color
Text-shadow: 5px 5px 3px #000; //
Word-wrap allows you to split long words and wrap them to the next line.
Word-wrap: normal | break-word;
// Normal: only break the line at the allowed break Point break-word: line feed within a long word or url address
Word-break specifies the line feed rules for non-Chinese-Japanese text
Word-break: normal | break-all | keep-all;
// Normal: Use the browser's default line feed rule break-all: Allow line breaks in words.

 

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.