Home >Web Front-end >HTML Tutorial >CSS Revealed, Cut Figure 01
O.REILLY@
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...)
<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>; }
Centered and slightly above the code, can you tell which one is really in the center?
Get busy living, or get busy dying.