Bootstrap 使えるclass色々

bootstrapの色指定

f:id:takehann:20180801183828p:plain

文字色を指定

text-????とすることで文字の色を指定

<p class="text-primary">.text-primary</p>水色の文字になる

text-????とすることで文字の色を指定

background-colorの指定

bg-????で背景色を指定

<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>水色の背景になる

margin・paddingの指定

margin・paddingの指定のしかた

[m/p][location]-[数字]
~location~ 
 right  → r  
 left  → l  
 top  → t  
 bottom → b  

 width → x  
 height  → y