MacでChrome/Firefoxを使用しています。このページをご覧ください。
水平スクロールバーがあるので、右側に余分なマージンがあります。Stackoverflowをスニッフィングすると、H1(H2)のwidth = 100%と関係があることがわかりました...スキップすると余分なマージンがなくなるためです... :) ...しかし、H1は左側にあり、私が欲しいものではありません...:(
header
{
background-color: #73020c;
padding-bottom: 110px; /* to push .banner down */
}
hgroup
{
position: relative;
text-align: center; /* to center h1 en h2 */
z-index: 1;
}
h1
{
font-family: 'BebasNeueRegular', sans-serif;
color: #fff;
line-height: 100%;
font-weight: normal;
text-transform: uppercase;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
margin-left: -50%; /* half the width */
z-index: 2;
letter-spacing: 0.15em;
padding-left: 0.15em; /* to compensate letter-spacing h1 */
}
h2
{
font-family: 'MutluOrnamental', sans-serif;
line-height: 100%;
font-weight: normal;
color: #b7b7b7;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
margin-left: -50%; /* half the width */
z-index: 3;
padding-top: 10px; /* !important > to make h2 fit in relation to h1 */
}
/* for all browser including all IE! */
h2 {
opacity: 0.75;
zoom: 1;
filter: alpha(opacity=75);
}