JSFiddle - React, Tailwind, and code Playground
HTML
<div class="screenwidth">Width ---->
<span id="width"></span>
</div>
<div class="container">
<div class="header">
<img class="imgFull" src="https://www.sofort.com/extension/sofort/design/sofort_2013/images/logo-sofort-ag.png" />
<div class="underLogo">Weitere Informationen</div>
</div>
<div class="content">
<div class="tile note mbl">
Wir weisen Sie darauf hin, dass die Seite für Sofortüberweisung/DirectEBanking-Zahlungen möglicherweise in einem neuen Pop-up-Fenster und nicht im Hauptfenster erscheint. Es wird daher empfohlen, Pop-up-Fenster zuzulassen, damit die Zahlungsseite angezeigt werden kann.</div>
<p>Sie sind im Begriff, einen Geldtransfer vorzunehmen mittels Sofortüberweisung.de für 23.10 EUR</p>
<p>Die Referenz, die auf Ihrem Sofortüberweisungsbeleg erscheint, lautet: VGDEU8932727</p>
<div class="buttonContainer">
<button class="btn pri">Bestatigen</button>
<button class="btn">Abbrechen</button>
</div>
</div>
</div>
CSS
body{
background-color:#f9f9f9;
font-size:13px;
font-family: Arial, sans-serif;
}
.container{
width:90%;
margin-left:5%;
background-color:#FFF;
padding-bottom:20px;
}
.header{
height:100px;
padding-left:30px;
padding-top:20px;
border-bottom:3px solid #eee;
}
.underLogo{
font-weight:bold;
color:rgb(155, 152, 152);
}
.content{
padding-left:30px;
padding-right:30px;
}
p{
margin-top:20px;
}
p.red {
color: rgb(255, 133, 0);
text-shadow: 1px 1px rgba(0, 0, 0, 0.15);
}
.buttonContainer
{
margin-top: 20px;
}
.btn {
font-family: inherit;
border: 0;
padding: 8px 16px;
font-weight: bold;
background-color: #dfdfe0;
-webkit-box-shadow: 0 2px 0 #c5c5c7;
box-shadow: 0 2px 0 #c5c5c7;
position: relative;
color: #4b4c4d;
border-radius: 2px;
display: inline-block;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn.pri, .btn.sec, .btn.err, .btn.fb {
color: white;
}
.btn.pri {
background-color: #8cc63f;
-webkit-box-shadow: 0 2px 0 #71a230;
box-shadow: 0 2px 0 #71a230;
}
.btn.pri:hover, .btn.pri:active, .btn.pri:focus {
background-color: #98cc53;
}
.btn.pri:active, .btn.pri:focus {
-webkit-box-shadow: 0 1px 0 #71a230;
box-shadow: 0 1px 0 #71a230;
background-color: #8ac53b;
}
.btn.err {
background-color: #da4f49;
-webkit-box-shadow: 0 2px 0 #c72f29;
box-shadow: 0 2px 0 #c72f29;
border-radius: 2px;
padding: 8px 16px;
}
.btn.err:hover, .btn.err:active, .btn.err:focus {
background-color: #de635e;
}
.tile.note {
margin-top: 10px;
background: #fcf8e3;
border-color: #e6e1c8;
color: #857523;
padding:18px;
border: 2px solid #dfdfe0;
-webkit-box-shadow: none;
box-shadow: none;
...
JavaScript
$( document ).ready(function() {
var width = $(window).width();
$( "#width" ).text( width );
});
$( window ).resize(function() {
var width = $(window).width();
$( "#width" ).text( width );
});