created by @manelbutterfly
<table>
<tr>
<td>A1</td>
<td>A2</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
</tr>
</table>
A1 | A2 |
... | ... |
<SCRIPT LANGUAGE = "Javascript">
alert("Hello World")
</SCRIPT>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
To be able to create great layouts we need to have an understanding of some basic CSS.
.class #Id element, a:active, :empty, :disabled, :link,input[type],....
h2 + p { }
h2 ~ p { }
<div class="wrapper">
<p>This div is set to 940 pixels width.</p>
</div>
.wrapper {
width: 940px;
}
<div class="wrapper">
<p>This div is set to 90% of the viewport to a maximum of 940 pixels width.</p>
</div>
.wrapper {
width: 90%;
max-width: 940px;
}
.bg{
position: relative;
background: url('bg.jpg') center/cover;
width: 100%;
height: 100vh;
}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
What do you know about CSS grid layout?
Let's see a simple example from MDN
http://labs.jensimmons.com/workshop/