css - How to set font-size and font-family for the following html code for horizontal scroller? -
css - How to set font-size and font-family for the following html code for horizontal scroller? -
i have next html code horizontal scroll bar. have been able come in text can't figure out how alter font-size , font-family:
class="snippet-code-html lang-html prettyprint-override"><div id="left_upper2"> <div class="links_body1"> <div class="items"> <img src="http://placehold.it/300x100/bb0000/ffffff&text=help"/> <img src="http://placehold.it/300x100/00274c/ffcb05&text=me"/> <img src="http://placehold.it/300x100/bb0000/ffffff&text=please"/> </div> </div> </div>
@codeuniquely did alter construction of horizontal scroll , yes using generated image placeholder. next went with:
<div id="left_upper2"> <div class="links_body1"> <div class="items"> <div class="scroll"><span5><img src="images.png" /></span5><span4><br />content</span4></div> <div class="scroll"><span7><img src="images.png" /></span7><span6><br />content</span6></div> <div class="scroll"><span5><img src="images.png" /></span5><span4><br />content</span4></div> </div> </div> </div>
and css:
.scroll { background-color: white; width: 300px; height: 100px; float: left; line-height: 19px; } .scroll span4 { color: black; font-size: 14px; } .scroll span5 { width: 100px; height: 100px; display: inline-block; float: left; background-color: #d6d6d6; } .scroll span6 { color: black; font-size: 14px; } .scroll span7 { width: 100px; height: 100px; display: inline-block; float: left; background-color: #00274c; } .scroll img { height: 50px; text-align: left; margin-top: 25px; text-align: center; } .items { width: 1200px; -webkit-animation: hscroll 20s infinite; -moz-animation: hscroll 20s infinite; -ms-animation: hscroll 20s infinite; } @-webkit-keyframes hscroll { 0% { margin-left: 0; } 27.33% { margin-left: 0 } 33.33% { margin-left: -300px; } 60.66% { margin-left: -300px; } 66.66% { margin-left: -600px; } 94.99% { margin-left: -600px; } 100% { margin-left: 0 } } @-webkit-keyframes hscroll { 0% { margin-left: 0; } 27.33% { margin-left: 0 } 33.33% { margin-left: -300px; } 60.66% { margin-left: -300px; } 66.66% { margin-left: -600px; } 94.99% { margin-left: -600px; } 100% { margin-left: 0 } } @-webkit-keyframes hscroll { 0% { margin-left: 0; } 27.33% { margin-left: 0 } 33.33% { margin-left: -300px; } 60.66% { margin-left: -300px; } 66.66% { margin-left: -600px; } 94.99% { margin-left: -600px; } 100% { margin-left: 0 } } .links_body1 { text-align: left; margin-left: auto; margin-right: auto; margin-top: 0px; margin-left: 0px; width: 300px; height: 100px; padding: 0; background-color: white; position: relative; overflow: hidden; text-align: center; }
html css
Comments
Post a Comment