JSFiddle - React, Tailwind, and code Playground
by chuangchen
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div class="container">
<div class="media">
<img style="float:left" height="300" width="100" src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">
<p>
Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.
</p>
<p>
Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.
</p>
<p>
Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.
</p>
<p>
Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes.
</p>
</div>
</div>
</body>
</html>
CSS
body {
background-color: #eee;
}
:root {
box-sizing: border-box;
}
*,
::before,
::after {
box-sizing: inherit;
}
body * + * {
margin-top: 1.5em;
}
header {
color: #fff;
background-color: #0072b0;
border-radius: 0.5em;
padding: 0 1em;
margin-bottom: 1.5em;
}
main {
background: white;
border-radius: 0.5em;
padding: 0 1.5em;
}
.container {
margin: 0 auto;
max-width: 100%;
}
.media {
background: yellow;
border: 1px solid green;
}