HTML + CSS Code Preview:
My First Upcoming Event
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
HTML Code:
<div class="upcoming_events_block">
<div class="upcoming_events_table">
<div class="upcoming_events_inside">
<div class="upcoming_events_thumbnail">
<img width="380" height="185" src="https://estrelladesign.tk/plugins/wp-content/uploads/2019/10/WV_06-380x185.jpg">
</div>
</div>
<div class="upcoming_events_inside">
<div class="upcoming_events_inside_table">
<div class="upcoming_events_inside_tab_row">
<div class="upcoming_events_date">
<div id="zero">
<span id="one">Dec</span>
<span id="two">07</span>
<span id="three">2019</span>
</div>
<div class="upcoming_events_links">
<a href="https://example.com/" target="_black">Info</a>
<a href="https://example.com/" target="_black">Source</a>
<a href="https://example.com/" target="_black">Tickets</a>
</div>
</div>
<div class="upcoming_events_title">
<span>My First Upcoming Event</span>
<div class="upcoming_events_desc">
<span class="upcoming_events_desc_span">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
CSS Code:
If you are not going to add this code to the file style.css, then you should include this code in these tags: <style></style>
.upcoming_events_block {display:block;font-size: 11px;font-family: Open Sans, Lato;line-height: normal;margin: 20px 0px;}
.upcoming_events_block * {text-decoration:none;-webkit-box-sizing: content-box !important;-moz-box-sizing: content-box !important;box-sizing: content-box !important;}
.upcoming_events_table {display: block;width:100%;overflow: hidden;}
.upcoming_events_inside {display: block;}
.upcoming_events_thumbnail {display:block;height: auto;overflow:hidden;position: relative;background:black;}
.upcoming_events_thumbnail:after {content:'';position:absolute;width:100%;height:100%;top:0;left:0;background: linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, 1));background: -webkit-linear-gradient(rgba(0, 0, 0, .0), rgb(0, 0, 0, 1));background: -o-linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, 1));background: -moz-linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, 1));background: -ms-linear-gradient(rgba(0, 0, 0, .0), rgba(0, 0, 0, 1));}
.upcoming_events_thumbnail img {display: block;width:100%;height: auto;max-width: 100%;outline: none !important;border: none !important;margin: 0 !important;padding: 0 !important;}
.upcoming_events_inside_table {display:table;width: 100%;padding-top: 10px;background: black;color: inherit;}
.upcoming_events_inside_tab_row {display:table-row;}
.upcoming_events_date {display:table-cell;vertical-align: top;width: 13%;padding: 0 5px;}
.upcoming_events_date #zero {display: block;width: auto;color: inherit;text-transform: uppercase;letter-spacing: 1px;font-family: Lato, Open Sans;font-size: 10px;margin-bottom: 10px;margin-left: 5px;margin-right: 5px;border-radius: 5px;overflow: hidden;}
.upcoming_events_date #one {display: block;text-align: center;font-size: 11px;font-weight:bold;padding: 5px 5px;background: whitesmoke;color: black;border-bottom: 3px solid lightgray;}
.upcoming_events_date #two {display:block;text-align:center;font-size: 30px;padding: 3px 7px;background: white;color: black;font-weight: bold;}
.upcoming_events_date #three {display:block;color: black;text-align: center;padding: 0px 5px 5px 5px;background: white;}
.upcoming_events_title {display:table-cell;font-family: Lato, Open Sans;vertical-align: top;width: auto;font-size: 16px;text-transform: uppercase;letter-spacing: 1px;padding: 0px 15px 0px 5px;font-weight: bold;}
.upcoming_events_title span {display:block;}
.upcoming_events_desc {display: block;padding: 15px 0px;font-size: 9px;text-transform: none;letter-spacing: 0px;font-weight: normal;font-family: Open Sans, Lato;}
.upcoming_events_desc_span {display:block;border: 1px solid white;padding: 10px;}
.upcoming_events_links {display: block;vertical-align: top;width: auto;text-align:center;color:black;padding: 0px 5px 0px 5px;}
.upcoming_events_links a {text-transform:uppercase;font-family: Lato, Open Sans;letter-spacing:1px;margin: 5px 0px;display: block;padding: 5px 10px;background: white;color: black;font-size: 9px;font-weight:bold;text-decoration:none !important;}
.upcoming_events_links a:hover {background:black;color:inherit !important;outline:1px solid white;text-decoration:none !important;}
PHP Code:
JS Code: