【問題】リセットCSSについて
問題
ブラウザによって異なるデフォルトのCSS、特にpaddingとmarginを打ち消すためにリセットCSSを導入しました。
すると元々文字の色が赤かったものが黒く変わってしまいました。
原因と対処策について教えて下さい。
前提:Ruby on Railsでhamlを使用
html.haml
%html %head 省略 %body .content 文字を赤くする
testscss.scss
html { color: red; } .content { padding: 50px; }
application.scss
@import "testscss"; @import "reset";
表示結果
回答