布局结构 - html 和 css

我有一个正在努力创造的概念“看到图像”。我已经开始了,这也是我迄今为止所做的。https://jsfiddle.net/o0zmtr3q/2/我如何使每个盒子都独一无二。我特别挣扎于第一个布局,其中文本位于不同的位置,并且 svg 位于 100,000 旁边,读者位于底部。

https://img1.sycdn.imooc.com/652ca08c0001d05d05200124.jpg

江户川乱折腾
浏览 105回答 3
3回答

临摹微笑

查看 flexbox 以了解对齐您所引用的元素的各种方法。这会让事情变得超级简单。这是布局结构的基本示例。main {&nbsp; display: flex;&nbsp; flex-direction: row;&nbsp; justify-content: center;&nbsp; align-items: center;&nbsp; max-width: 80vw;&nbsp; margin: 0 auto;&nbsp; border: 2px solid black;}.item {&nbsp; display: flex;&nbsp; flex-direction: column;&nbsp; justify-content: center;&nbsp; align-items: center;&nbsp; flex: 1;&nbsp; text-align: center;&nbsp; color: #fff;}.item:nth-of-type(1) {&nbsp; background-color: teal;}.item:nth-of-type(2) {&nbsp; background-color: DarkOrchid;}.item:nth-of-type(3) {&nbsp; background-color: tomato;}.item__inner__photo {&nbsp; max-width: 120px;&nbsp; height: auto;}<main>&nbsp; <div class="item">&nbsp; &nbsp; <div class="item__inner">&nbsp; &nbsp; &nbsp; <img src="https://cdn3.volusion.com/uuhbg.clmqc/v/vspfiles/photos/00028861-2.jpg?v-cache=1522302835" alt="" class="item__inner__photo">&nbsp; &nbsp; &nbsp; <h3 class="item__inner__headline">&nbsp; &nbsp; &nbsp; &nbsp; This is a headline&nbsp; &nbsp; &nbsp; </h3>&nbsp; &nbsp; &nbsp; <p class="item__inner__content">Add some content here!</p>&nbsp; &nbsp; </div>&nbsp; </div>&nbsp; <div class="item">&nbsp; &nbsp; <div class="item__inner">&nbsp; &nbsp; &nbsp; <img src="https://cdn3.volusion.com/uuhbg.clmqc/v/vspfiles/photos/00028861-2.jpg?v-cache=1522302835" alt="" class="item__inner__photo">&nbsp; &nbsp; &nbsp; <h3 class="item__inner__headline">&nbsp; &nbsp; &nbsp; &nbsp; This is a headline&nbsp; &nbsp; &nbsp; </h3>&nbsp; &nbsp; &nbsp; <p class="item__inner__content">Add some content here!</p>&nbsp; &nbsp; </div>&nbsp; </div>&nbsp; <div class="item">&nbsp; &nbsp; <div class="item__inner">&nbsp; &nbsp; &nbsp; <img src="https://cdn3.volusion.com/uuhbg.clmqc/v/vspfiles/photos/00028861-2.jpg?v-cache=1522302835" alt="" class="item__inner__photo">&nbsp; &nbsp; &nbsp; <h3 class="item__inner__headline">&nbsp; &nbsp; &nbsp; &nbsp; This is a headline&nbsp; &nbsp; &nbsp; </h3>&nbsp; &nbsp; &nbsp; <p class="item__inner__content">Add some content here!</p>&nbsp; &nbsp; </div>&nbsp; </div></main>

慕容森

尝试一下,让我知道这是否是您想要的。我已使用 Flexbox 按要求将元素彼此相邻对齐。#container {&nbsp; display: flex;&nbsp; text-align: center;}.featured-news-wrapper {&nbsp; flex: 1 1 0;}a {&nbsp; text-decoration: none;}/*Legal Notice Styling*/.featured--legal--notices {&nbsp; background: #1A1A1A;&nbsp; height: 100%;}.featured--legal--notices .btn-legal {&nbsp; background-color: #01AD54;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.legal-overlay-logo svg {&nbsp; margin-top: 1rem;}.featured--legal--notices .legal-overlay h2 {&nbsp; font-size: 28px;&nbsp; color: #fff;&nbsp; text-transform: uppercase;}.featured--legal--notices .legal-overlay p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--legal--notices .legal-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--legal--notices .legal-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}/*END OF legal notice STYLING*//*Readers Styling*/.featured--readers {&nbsp; background: linear-gradient(90deg, rgb(0, 118, 57) 0%, rgb(39, 173, 84) 100%);&nbsp; height: 100%;}.featured--readers .btn-readers {&nbsp; background-color: #1A1A1A;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.readers-overlay-logo svg {&nbsp; margin-top: 2rem;}.featured--readers .readers-overlay h1 {&nbsp; color: #fff;&nbsp; text-transform: uppercase;&nbsp; margin: 0;}.featured--readers .readers-overlay p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--readers.readers-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--readers.readers-overlay-white {&nbsp; cursor: pointer;}.featured--readers .readers-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}/*END OF Readers STYLING*//*subscribe Styling*/.featured--subscribe {&nbsp; background: linear-gradient(90deg, rgb(0, 118, 57) 0%, rgb(39, 173, 84) 100%);&nbsp; color: #fff;&nbsp; height: 100%;}.featured--subscribe .btn-subscribe {&nbsp; background-color: #1A1A1A;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.subscribe-overlay p {&nbsp; margin-top: 0;&nbsp; padding-top: 2rem;}.subscribe-overlay-logo svg {&nbsp; margin-top: 2rem;}.featured--subscribe .readers-subscribe p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--subscribe.subscribe-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--subscribe.subscribe-overlay-white {&nbsp; cursor: pointer;}.featured--subscribe .subscribe-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}/*END OF Readers STYLING*/<div id="container">&nbsp; <div class="col-4 featured-news-wrapper">&nbsp; &nbsp; <a href=" ">&nbsp; &nbsp; &nbsp; <div class="featured--readers">&nbsp; &nbsp; &nbsp; &nbsp; <div class="readers-overlay-logo">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <svg xmlns="http://www.w3.org/2000/svg" width="58.373" height="63.352" viewBox="0 0 58.373 63.352">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<path id="Path_1275" data-name="Path 1275" d="M34.794,67.261l.22-26.139a.173.173,0,0,0-.312-.1L26.813,51.883A8.568,8.568,0,0,1,13.291,41.36a8.57,8.57,0,0,1,6.589-15.82l11.983,5.469a.167.167,0,0,0,.224-.086.152.152,0,0,0-.027-.177L22.875,19.514A8.57,8.57,0,0,1,36.5,9.115a8.568,8.568,0,0,1,13.619,10.4L41.211,30.4a.175.175,0,0,0,.022.241.179.179,0,0,0,.176.027l12.637-5.066a8.57,8.57,0,0,1,5.839,16.114,8.567,8.567,0,0,1-14,9.874L39.119,41.285a.169.169,0,0,0-.237-.049.181.181,0,0,0-.081.146,40.994,40.994,0,0,0,3.65,16.554Zm6.346-9.5a42.025,42.025,0,0,1-3.46-16.372,1.3,1.3,0,0,1,2.377-.719L46.8,50.955a7.447,7.447,0,0,0,12.037-8.773,7.124,7.124,0,0,0-.988-1.1,7.447,7.447,0,1,0-3.408-14.419L41.821,31.717a1.3,1.3,0,0,1-1.481-2.023l8.89-10.876A7.444,7.444,0,1,0,37.255,9.974a7.271,7.271,0,0,0-.758,1.272,7.445,7.445,0,1,0-13.489,6.3,7.005,7.005,0,0,0,.751,1.266l9.17,11.22a1.289,1.289,0,0,1-1.534,1.99L19.434,26.575a7.445,7.445,0,1,0-5.506,13.834,7.219,7.219,0,0,0,1.421.407,7.445,7.445,0,0,0,9.53,11.44,7.1,7.1,0,0,0,1.041-1.051L33.792,40.36a1.295,1.295,0,0,1,2.34.768l-.188,22.967Z" transform="translate(-7.591 -5.321)" fill="none" stroke="#fff" stroke-width="1" />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</svg>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <div class="readers-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>Reach Over</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <h1>100,000 </h1>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p> Readers<br>with advertising </p>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-readers">Learn More</button>&nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; </a>&nbsp; </div>&nbsp; <div class="col-4 featured-news-wrapper">&nbsp; &nbsp; <a href="&nbsp; &nbsp;">&nbsp; &nbsp; &nbsp; <div class="featured--legal--notices">&nbsp; &nbsp; &nbsp; &nbsp; <div class="legal-overlay-logo">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <svg xmlns="http://www.w3.org/2000/svg" width="62.576" height="62.344" viewBox="0 0 62.576 62.344">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<path id="gavel-solid" d="M59.516,23.5l-2.667-2.667a2.829,2.829,0,0,0-4,0l-.667.667L38.847,8.162l.667-.667a2.829,2.829,0,0,0,0-4L36.847.828a2.829,2.829,0,0,0-4,0L18.179,15.5a2.829,2.829,0,0,0,0,4l2.667,2.667a2.829,2.829,0,0,0,4,0l.667-.667,4.667,4.667-9.551,9.551-.667-.667a3.771,3.771,0,0,0-5.334,0L1.1,48.571a3.771,3.771,0,0,0,0,5.334l5.334,5.334a3.771,3.771,0,0,0,5.334,0L25.3,45.715a3.771,3.771,0,0,0,0-5.334l-.667-.667,9.551-9.551,4.667,4.667-.667.667a2.829,2.829,0,0,0,0,4l2.667,2.667a2.829,2.829,0,0,0,4,0L59.516,27.5a2.829,2.829,0,0,0,0-4Z" transform="translate(1 1.001)" fill="none" stroke="#fff" stroke-width="2" />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</svg>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <div class="legal-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <h2>Legal Notices</h2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p> Published every Wednesday<br><i>Deadline every Friday at 3pm!</i></p>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-legal">Learn More</button>&nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; </a>&nbsp; </div>&nbsp; <div class="col-4 featured-news-wrapper">&nbsp; &nbsp; <a href="&nbsp; ">&nbsp; &nbsp; &nbsp; <div class="featured--subscribe">&nbsp; &nbsp; &nbsp; &nbsp; <div class="subscribe-overlay-logo">&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <div class="subscribe-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>Subscribe <br>And Never miss and issue</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src="<?php bloginfo('template_url'); ?>/img/subscribe.png">&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-subscribe">Subscribe From $5</button>&nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; </a>&nbsp; </div></div>JsFiddle: https:&nbsp;//jsfiddle.net/Lasxr3kb/1/

慕神8447489

您想要一个container类,并且在其中您想要一个,row并且在其中您想要有列。我还添加了一个column类来删除 的默认填充col-4。(看看全页模式下的片段).column {&nbsp; padding-left: 0px !important;&nbsp; padding-right: 0px !important;}/*Legal Notice Styling*/.featured--legal--notices {&nbsp; position: relative;&nbsp; height: 300px;&nbsp; overflow: hidden;&nbsp; background: #1a1a1a;}.featured--legal--notices .btn-legal {&nbsp; position: absolute;&nbsp; top: 89%;&nbsp; left: 28%;&nbsp; transform: translate(5%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; background-color: #01ad54;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.legal-overlay-logo {&nbsp; margin-top: 1rem;&nbsp; margin-left: 43%;}.featured--legal--notices .legal-overlay {&nbsp; position: absolute;&nbsp; top: 55%;&nbsp; left: 55%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;&nbsp; margin-left: auto;&nbsp; margin-right: auto;&nbsp; width: 15rem;}.featured--legal--notices .legal-overlay h2 {&nbsp; font-size: 28px;&nbsp; color: #fff;&nbsp; text-transform: uppercase;}.featured--legal--notices .legal-overlay p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--legal--notices .legal-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--legal--notices .legal-overlay-white {&nbsp; position: absolute;&nbsp; top: 71%;&nbsp; left: 45%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;}.featured--legal--notices .legal-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}@media only screen and (max-width: 1200px) {&nbsp; .featured--legal--notices .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .btn-listen {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #fff;&nbsp; &nbsp; color: #01ad54;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 55%;&nbsp; &nbsp; left: 60%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 32%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay-white {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 65%;&nbsp; &nbsp; left: 35%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}@media only screen and (max-width: 375px) {&nbsp; .featured--legal--notices .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .btn-listen {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #fff;&nbsp; &nbsp; color: #01ad54;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 29%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--legal--notices .legal-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}/*END OF legal notice STYLING*//*Readers Styling*/.featured--readers {&nbsp; position: relative;&nbsp; height: 300px;&nbsp; overflow: hidden;&nbsp; background: linear-gradient(90deg, rgb(0, 118, 57) 0%, rgb(39, 173, 84) 100%);}.featured--readers .btn-readers {&nbsp; position: absolute;&nbsp; top: 89%;&nbsp; left: 28%;&nbsp; transform: translate(5%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; background-color: #1a1a1a;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.readers-overlay-logo {&nbsp; margin-top: 2rem;&nbsp; margin-left: 43%;}.featured--readers .readers-overlay {&nbsp; position: absolute;&nbsp; top: 55%;&nbsp; left: 55%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;&nbsp; margin-left: auto;&nbsp; margin-right: auto;&nbsp; width: 17rem;}.featured--readers .readers-overlay h1 {&nbsp; color: #fff;&nbsp; text-transform: uppercase;&nbsp; margin: 0;}.featured--readers .readers-overlay p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--readers.readers-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--readers.readers-overlay-white {&nbsp; position: absolute;&nbsp; top: 71%;&nbsp; left: 55%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;}.featured--readers .readers-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}@media only screen and (max-width: 1200px) {&nbsp; .featured--readers .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers .btn-readers {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #1a1a1a;&nbsp; &nbsp; color: #fff;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--readers .readers-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 55%;&nbsp; &nbsp; left: 60%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers .readers-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 32%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers .readers-overlay-white {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 65%;&nbsp; &nbsp; left: 35%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers .readers-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}@media only screen and (max-width: 375px) {&nbsp; .featured--readers .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers .btn-readers {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #1a1a1a;&nbsp; &nbsp; color: #fff;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--readers .readers-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 29%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--readers.readers-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}/*END OF Readers STYLING*//*subscribe Styling*/.featured--subscribe {&nbsp; position: relative;&nbsp; height: 300px;&nbsp; overflow: hidden;&nbsp; background: linear-gradient(90deg, rgb(0, 118, 57) 0%, rgb(39, 173, 84) 100%);&nbsp; color: #fff;}.featured--subscribe .btn-subscribe {&nbsp; position: absolute;&nbsp; top: 89%;&nbsp; left: 20%;&nbsp; transform: translate(5%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; background-color: #1a1a1a;&nbsp; color: #fff;&nbsp; font-size: 16px;&nbsp; padding: 12px 24px;&nbsp; border: none;&nbsp; cursor: pointer;&nbsp; border-radius: 5px;&nbsp; text-align: center;&nbsp; text-transform: uppercase;}.subscribe-overlay-logo {&nbsp; margin-top: 2rem;&nbsp; margin-left: 43%;}.featured--subscribe .subscribe-overlay {&nbsp; position: absolute;&nbsp; top: 45%;&nbsp; left: 60%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;&nbsp; margin-left: auto;&nbsp; margin-right: auto;&nbsp; width: 17rem;}.featured--subscribe .readers-subscribe p {&nbsp; font-size: 18px;&nbsp; color: #fff;}.featured--subscribe.subscribe-overlay i {&nbsp; font-size: 16px;&nbsp; color: #fff;}.featured--subscribe.subscribe-overlay-white {&nbsp; position: absolute;&nbsp; top: 71%;&nbsp; left: 45%;&nbsp; transform: translate(-50%, -50%);&nbsp; -ms-transform: translate(-50%, -50%);&nbsp; cursor: pointer;}.featured--subscribe .subscribe-overlay-white p {&nbsp; font-size: 16px;&nbsp; color: #fff;}@media only screen and (max-width: 1200px) {&nbsp; .featured--subscribe .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe .btn-subscribe {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #1a1a1a;&nbsp; &nbsp; color: #fff;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--subscribe .subscribe-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 55%;&nbsp; &nbsp; left: 60%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe .subscribe-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 32%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe .subscribe-overlay-white {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 65%;&nbsp; &nbsp; left: 35%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe .subscribe-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}@media only screen and (max-width: 375px) {&nbsp; .featured--subscribe .bob-logo {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 20%;&nbsp; &nbsp; left: 34%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe .btn-subscribe {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 80%;&nbsp; &nbsp; left: 55%;&nbsp; &nbsp; transform: translate(5%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; background-color: #1a1a1a;&nbsp; &nbsp; color: #fff;&nbsp; &nbsp; font-size: 12px;&nbsp; &nbsp; padding: 8px 20px;&nbsp; &nbsp; border: none;&nbsp; &nbsp; cursor: pointer;&nbsp; &nbsp; border-radius: 5px;&nbsp; &nbsp; text-align: center;&nbsp; &nbsp; text-transform: uppercase;&nbsp; }&nbsp; .featured--subscribe .subscribe-overlay {&nbsp; &nbsp; position: absolute;&nbsp; &nbsp; top: 56%;&nbsp; &nbsp; left: 29%;&nbsp; &nbsp; transform: translate(-50%, -50%);&nbsp; &nbsp; -ms-transform: translate(-50%, -50%);&nbsp; &nbsp; cursor: pointer;&nbsp; }&nbsp; .featured--subscribe.subscribe-overlay-white p {&nbsp; &nbsp; font-size: 14px;&nbsp; &nbsp; color: #fff;&nbsp; }}.column {&nbsp; padding-left: 0px !important;&nbsp; padding-right: 0px !important;}<!DOCTYPE html><html>&nbsp; <head>&nbsp; &nbsp; <!-- BootStrap 4 CSS -->&nbsp; &nbsp; <link&nbsp; &nbsp; &nbsp; rel="stylesheet"&nbsp; &nbsp; &nbsp; href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"&nbsp; &nbsp; &nbsp; integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"&nbsp; &nbsp; &nbsp; crossorigin="anonymous"&nbsp; &nbsp; />&nbsp; &nbsp;&nbsp; &nbsp; <title> App</title>&nbsp; </head>&nbsp; <body>&nbsp; &nbsp; <div class="container-fluid">&nbsp; &nbsp; &nbsp; <div class="row">&nbsp; &nbsp; &nbsp; &nbsp; <div class="col-4 column featured-news-wrapper">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href=" ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="featured--readers">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="readers-overlay-logo"></div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="readers-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- svg beside main text -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <svg&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns="http://www.w3.org/2000/svg"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width="58.373"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height="63.352"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; viewBox="0 0 58.373 63.352"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id="Path_1275"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data-name="Path 1275"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d="M34.794,67.261l.22-26.139a.173.173,0,0,0-.312-.1L26.813,51.883A8.568,8.568,0,0,1,13.291,41.36a8.57,8.57,0,0,1,6.589-15.82l11.983,5.469a.167.167,0,0,0,.224-.086.152.152,0,0,0-.027-.177L22.875,19.514A8.57,8.57,0,0,1,36.5,9.115a8.568,8.568,0,0,1,13.619,10.4L41.211,30.4a.175.175,0,0,0,.022.241.179.179,0,0,0,.176.027l12.637-5.066a8.57,8.57,0,0,1,5.839,16.114,8.567,8.567,0,0,1-14,9.874L39.119,41.285a.169.169,0,0,0-.237-.049.181.181,0,0,0-.081.146,40.994,40.994,0,0,0,3.65,16.554Zm6.346-9.5a42.025,42.025,0,0,1-3.46-16.372,1.3,1.3,0,0,1,2.377-.719L46.8,50.955a7.447,7.447,0,0,0,12.037-8.773,7.124,7.124,0,0,0-.988-1.1,7.447,7.447,0,1,0-3.408-14.419L41.821,31.717a1.3,1.3,0,0,1-1.481-2.023l8.89-10.876A7.444,7.444,0,1,0,37.255,9.974a7.271,7.271,0,0,0-.758,1.272,7.445,7.445,0,1,0-13.489,6.3,7.005,7.005,0,0,0,.751,1.266l9.17,11.22a1.289,1.289,0,0,1-1.534,1.99L19.434,26.575a7.445,7.445,0,1,0-5.506,13.834,7.219,7.219,0,0,0,1.421.407,7.445,7.445,0,0,0,9.53,11.44,7.1,7.1,0,0,0,1.041-1.051L33.792,40.36a1.295,1.295,0,0,1,2.34.768l-.188,22.967Z"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transform="translate(-7.591 -5.321)"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fill="none"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stroke="#fff"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stroke-width="1"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </svg>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- main text -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <h1>100,000</h1>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- sub text-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>Readers<br />with advertising</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- text at the top -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="readers-overlay-white">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>Reach Over</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- readers button -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-readers">Learn More</button>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <div class="col-4 column featured-news-wrapper">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="featured--legal--notices">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="legal-overlay-logo">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <svg&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns="http://www.w3.org/2000/svg"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width="62.576"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height="62.344"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; viewBox="0 0 62.576 62.344"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id="gavel-solid"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d="M59.516,23.5l-2.667-2.667a2.829,2.829,0,0,0-4,0l-.667.667L38.847,8.162l.667-.667a2.829,2.829,0,0,0,0-4L36.847.828a2.829,2.829,0,0,0-4,0L18.179,15.5a2.829,2.829,0,0,0,0,4l2.667,2.667a2.829,2.829,0,0,0,4,0l.667-.667,4.667,4.667-9.551,9.551-.667-.667a3.771,3.771,0,0,0-5.334,0L1.1,48.571a3.771,3.771,0,0,0,0,5.334l5.334,5.334a3.771,3.771,0,0,0,5.334,0L25.3,45.715a3.771,3.771,0,0,0,0-5.334l-.667-.667,9.551-9.551,4.667,4.667-.667.667a2.829,2.829,0,0,0,0,4l2.667,2.667a2.829,2.829,0,0,0,4,0L59.516,27.5a2.829,2.829,0,0,0,0-4Z"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transform="translate(1 1.001)"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fill="none"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stroke="#fff"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stroke-width="2"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </svg>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="legal-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- legal heading -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <h2>Legal Notices</h2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- legal text -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Published every Wednesday<br /><i&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; >Deadline every Friday at 3pm!</i&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- legal button -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-legal">Learn More</button>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; <div class="col-4 column featured-news-wrapper">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- subscribe link-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="&nbsp; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="featured--subscribe">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="subscribe-overlay-logo"></div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div class="subscribe-overlay">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- subscribe text-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <p>Subscribe <br />And Never miss and issue</p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- subscribe image -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src="<?php bloginfo('template_url'); ?>/img/subscribe.png">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- subscribe button -->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <button class="btn-subscribe">Subscribe From $5</button>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a>&nbsp; &nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; &nbsp; </div>&nbsp; &nbsp; </div>&nbsp; </body></html>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Html5