0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Emmet】爆速でCSSを書く方法!(AWS Cloud9)

Posted at

こんばんは!
今日はEmmetのHTMLの記事に続き、CSSのEmmetを使用したコーディングを紹介します!
タイトルにある通り、環境はAWS Cloud9で特にインストールするものはありません。

基本の操作

Emmetの略語(この後紹介します)を入力後、Ctrl+Alt+Eで展開できます。といってもイメージ湧かないかもしれないので、早速紹介に入りたいと思います!

CSS略語一覧(チートシートより抜粋)

CSS略語 Ctrl+Alt+Eで展開後の表示
m margin: ;
m:a margin: auto;
mt margin-top: ;
p padding: ;
pt padding-top: ;
w100 width: 100px;
wa width: auto;
ha height: auto;
maw max-width: ;
miw min-width: ;
fw font-weight: ;
fw:b font-weight: bold;
fw:n font-weight: normal;
fz font-size: ;
ta:c text-align: center;
lh line-height: ;
jc justify-content: ;
jc:c justify-content: center;
fx flex: ;
fxw flex-wrap: ;
c color: #000;
op opacity: ;
cur cursor: pointer;
z z-index: ;
pos position: relative;
pos:a position: absolute;
fl float: left;

例外ももちろんありますが、tはtop、rはright、bはbottom、aはautoなど、なんとなくパターンが決まっているので、大体頭文字を入れてみると変換できそうです。
チートシートはこちらです↓ 情報量がかなり多いので、よく使うものだけ覚えるのが効率よさそうです。

最後に

PFは決められた期間で1人で作業することになるので、いかにHTMLとCSSを早く記述できるかが大事になってくると思うので、あと半月で覚えて使えるようになりたいです:muscle:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?