iCode
コード一覧
ログイン
新規登録
背景斜め線
Created by
とぴ (#6)
背景
<div class="layout"> </div>
.layout { background-color: #333; background-image: linear-gradient( 135deg, transparent 25%, rgb(196, 196, 0) 25%, rgb(196, 196, 0) 75%, transparent 75% ); background-size: 100% 100%; background-attachment: fixed; height: 100vh; margin: 0; padding: 0; } @media (max-width: 640px) { .layout { background-image: linear-gradient( 125deg, transparent 35%, rgb(196, 196, 0) 35%, rgb(196, 196, 0) 75%, transparent 75% ); } }
Copy
Copied