I have a PDF document that I am trying to re-create via HTML. The document is a list of date and events or each season. I am not sure where to apply the border properties to create the inside gradient in the left border and the border radius inside the box.
This is an image of the PDF that I am trying to re-create.
I have managed to achieve most of it with the following below code.
body {
width: 1200px;
font-size: .9335rem
}
h1 {
width: 95%;
margin: .8rem auto;
overflow: hidden;
text-align: center;
color: #0A3782;
font-weight: 700;
text-transform: uppercase;
text-shadow: 0px 7px 14px #000000;
}
h1::before,
h1::after {
content: "";
display: inline-block;
width: 70%;
margin: 0 .5em 0 -55%;
vertical-align: middle;
border-bottom: 1px solid #000000;
}
h1:after {
margin: 0 -55% 0 .5em;
}
.ml-250 {
width: 970px;
margin: 10px 0px 10px 250px;
border-left: 75px solid;
border-top: 15px solid #1c6799;
border-bottom: 15px solid #0d3251;
border-radius: 30px 30px 30px 30px;
-moz-border-radius: 30px 30px 30px 30px;
-webkit-border-radius: 30px 30px 30px 30px;
}
.ml-125 {
width: 970px;
margin: 10px 0px 10px 125px;
border-left: 75px solid;
border-top: 15px solid #1c6799;
border-bottom: 15px solid #0d3251;
border-radius: 30px 30px 30px 30px;
-moz-border-radius: 30px 30px 30px 30px;
-webkit-border-radius: 30px 30px 30px 30px;
}
#winter {
display: table;
table-layout: fixed;
}
#winter::before {
content: "WINTER";
color: #ffffff;
display: table-cell;
transform: translateX(-50px);
vertical-align: middle;
font-size: 1.75rem;
word-break: break-all;
width: 0.7rem;
text-align: center;
font-weight: 700;
}
<link href="https://www.w3schools.com/w3css/4/w3.css" rel="stylesheet"/>
<body>
<h1>2017 Surface Force Significant Events</h1>
<div id="winter" class="ml-250">
<div class="w3-row">
<div class="w3-twothird">
<table class="">
<tbody>
<tr>
<td>01/23/17</td>
<td>USS Makin Island Provides Medical Assistance to Pakistani Sailor</td>
</tr>
<tr>
<td>02/03/17</td>
<td>U.S. Japan Successfully Conduct First SM-3 Block IIA Intercept Test</td>
</tr>
<tr>
<td>02/12/17</td>
<td>Navy Christens Future Tulsa</td>
</tr>
<tr>
<td>03/01/17</td>
<td>USS Dewey Fires SM-2 Missile during MISSILEX</td>
</tr>
<tr>
<td>03/07/17</td>
<td>Navy Conducts Successful Missile Test Firing</td>
</tr>
<tr>
<td>03/07/17</td>
<td>“Speed-to-Fleet” Answered the Call: Missiles On-Target “Skin to Skin”</td>
</tr>
<tr>
<td>03/23/17</td>
<td>USS Lake Erie Assists Distressed Mariners</td>
</tr>
<tr>
<td>03/29/17</td>
<td>USS Princeton Participates in Show of Force Strait Transit Exercise</td>
</tr>
<tr>
<td>03/31/17</td>
<td>Ross, Porter Conduct TLAM Strikes into Syria</td>
</tr>
</tbody>
</table>
</div>
<div class="w3-third">
<table>
<tbody>
<tr>
<td><img src="https://dummyimage.com/140x110.jpg" /></td>
<td><img src="https://dummyimage.com/140x110.jpg" /></td>
</tr>
<tr>
<td><img src="https://dummyimage.com/140x110.jpg" /></td>
<td><img src="https://dummyimage.com/140x110.jpg" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
you could use the container and pseudos via
position:absolute
/relative
to draw the dashed borders : https://codepen.io/gc-nomade/pen/KyarezNote, you can use the comma to separate CSS selectors when the rules to apply are similar.
font-variant
orfont-style
can be used to turn lowercase charactere into uppercase .