CSS Revealed, Cut Figure 01

WBOY
Release: 2016-10-17 09:11:28
Original
1097 people have browsed it

key-> vertical-align: top;

I like dog-eared corners, am I Brokeback Mountain?

I’m so fucking dog-eared. I love it

key->background-image: linear-gradient(to bottom right, gray 0, gray 90%, transparent 91%, transparent 100%);

The picture cutting plan is launched, starting from the cover.

The above are all tips. The book talks about a key point, the visual illusion: the midpoint of vision is a little bit above (silently say to myself, don’t use pixels, don’t dig holes for yourself...)

s
s
<span style="color: #800000;">.center-display .object</span>{<span style="color: #ff0000;">
  position</span>:<span style="color: #0000ff;"> absolute</span>;<span style="color: #ff0000;">
  width</span>:<span style="color: #0000ff;"> 0.5em</span>;<span style="color: #ff0000;">
  height</span>:<span style="color: #0000ff;"> 0.5em</span>;<span style="color: #ff0000;">
  top</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  bottom</span>:<span style="color: #0000ff;"> 0.8em</span>;<span style="color: #ff0000;">
  left</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  right</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  margin</span>:<span style="color: #0000ff;"> auto auto</span>;<span style="color: #ff0000;">
  border-radius</span>:<span style="color: #0000ff;"> 50%</span>;<span style="color: #ff0000;">
  background-color</span>:<span style="color: #0000ff;"> red</span>;<span style="color: #ff0000;">
text-indent</span>:<span style="color: #0000ff;"> -300em</span>;
}<span style="color: #800000;">
.center-display:nth-child(2) .object</span>{<span style="color: #ff0000;">
  bottom</span>:<span style="color: #0000ff;"> 0</span>;
}
Copy after login
View Code

Centered and slightly above the code, can you tell which one is really in the center?

Get busy living, or get busy dying.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template