Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8595

【CSS】ナビゲーションバー作成のポイント【自分用】

$
0
0

  1. なんでもclassで括らない。
    tool barなどのbar系の中で要素を並べたい時は
    クラス名+ul,
    クラス名+ul+li
    で表現する。

  2. navigation barnの固定の仕方
    最初にnavigation barの幅、高さをdivのCSSで固定
    →<li>で作成した各要素は、margin:0、padding:0を指定する

  3. h1は1ページに1つ

  4. ページの各セクションは以下のように固定。
    (position:relative=現在の表示位置から相対的に要素の位置を動かしたいときに使用)
  5. .section{float:left(orright);position:relative;bottom:?;right:?;left:?;top:?;}


Viewing all articles
Browse latest Browse all 8595


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>