2019年5月11日 星期六

Css-margins padding屬性


Css-margins屬性 邊距 為border往外延伸之處
四style
Margin-top(right/bottom/left)
每個屬性可以設定的值
1.      auto
2.      width,height
3.      百分比
4.      Inherit預設
合併後
上、右、下、左
p {
  margin: 25px 50px 75px 100px;
}

css-padding屬性 向border內填充
同上

沒有留言:

張貼留言

Css-list列表屬性

Css-list 列表屬性 有序 <ol> 無序 <ul> 清單項目標記 List-style-type 型態 Circle/square/upper-roman/lower-alpha List-style-image...