html - How can I add pad my text so the transparent box doesn't overlap? -
br { display: block; line-height: 80px; } h1, h2, h3, h4, h5, h6 { margin: .67em 0; text-align: center; color: floralwhite; font-family:'conv_milasiancircamediumpersonal','open sans', 'helvetica neue', arial, sans-serif; } h1 span { font-size: 1em; background-color: rgba(0, 0, 0, 0.2); -webkit-animation: mymove 10s infinite; /* chrome, safari, opera */ animation: mymove 10s infinite; } h3 span { font-size: 1.5em; background-color: rgba(0, 0, 0, 0.4); -webkit-animation: mymove 10s infinite; /* chrome, safari, opera */ animation: mymove 10s infinite; } h4 span { font-size: 1.5em; background-color: rgba(0, 0, 0, 0.4); -webkit-animation: mymove 10s infinite; /* chrome, safari, opera */ animation: mymove 10s infinite; } /* chrome, safari, opera */ @-webkit-keyframes mymove { 50% { color: ghostwhite; } } /* standard syntax */ @keyframes mymove { 50% { color: ghostwhite; } } p { margin-bottom: 20px; font-size: 16px; line-height: 1.5; }
browser needs work in ie10+ (not edge)
<header> <div class="header-content"> <div class="header-content-inner"> <h1><span>please advised flu shots<br>for employees be:</span></h1><br><h3><span>friday, october 30, 2015<br>1:30 pm 3:30pm</span></h3> <p></p> <div class="btn btn-primary btn-xl page-scroll" onclick="self.close()"><span>conference room 1</span></div> <br><br> <h4><span>there no fee must bring health insurance card</span></h4> </div> </div> </header>
i think want use padding box-sizing: border-box;
*{ box-sizing:border-box; } span{ padding: 10px; }
if possible, i'd advise removing <br>
tags in html , using css achieve want instead.
Comments
Post a Comment