h1 h3 . , 100% , margin:auto; . , text-align: center; width: 100%; container/wrapping.
, :
#masterhead #header-text {
width: 100%;
text-align: center;
}
#masterhead #header-text{
font-family: Arial, Helvetica, sans-serif;
}
#masterhead h1{
margin-top:0;
font-weight: 600;
}
#masterhead h3{
padding-top:15px;
}
@media only screen and (max-width: 479px) {
#masterhead #header-text { width: 100%; text-align: center;}
#masterhead h1 {font-size:30px; }
#masterhead h3 {font-size:20px; }
}
<div id="masterhead">
<div id="header-bg">
<div class="container">
<div id="header-text">
<a href="https://www.google.com">
<h3>Thin Title</h3>
<h1>Title</h1>
</a>
</div>
<div class="logo">
<a href="https://www.google.com"><img src="~/Content/images/stacked.png" /></a>
</div>
</div>
</div>
</div>
Hide result.
Edit:
... , , text-align: center; div , reset text-align: left; .
:
#masterhead #header-text {
float: left;
font-family: Arial, Helvetica, sans-serif;
}
#masterhead h1 {
margin-top: 0;
font-weight: 600;
}
#masterhead h3 {
padding-top: 15px;
}
#masterhead br {
display: none;
}
@media only screen and (max-width: 479px) {
#masterhead #header-text {
float: none;
text-align: center;
}
#masterhead #header-text a {
display: inline-block;
text-align: left;
}
#masterhead h1 {
font-size: 30px;
}
#masterhead h3 {
font-size: 20px;
}
}
<div id="masterhead">
<div id="header-bg">
<div class="container">
<div id="header-text">
<a href="https://www.google.com">
<h3>Thin Title</h3>
<h1>Title</h1>
</a>
</div>
<div class="logo">
<a href="https://www.google.com"><img src="~/Content/images/stacked.png" /></a>
</div>
</div>
</div>
</div>
Hide result, float: left;. - , , , .container div.