Check out the layout of my webpage:
-------------
-------------
Image here
-------------
-------------
Table1 here
Table2 here
Table3 here
My goal is to redesign it to look like this:
-------------
-------------
Image here Table1 here
-------------
-------------
Table2 here Table3 here
Here's the HTML code snippet:
<img class="image" src="somesrc">
<table id="table-1">
<tbody>
<tr class="row-1">
<td class="column-1">something</td><td class="column-2">something</td>
</tr>
<tr class="row-2">
<td class="column-1">something</td><td class="column-2">something</td>
</tr>
Repeat for other 2 tables with different IDs
Here is the CSS snippet:
.image {
height: auto;
width: 250px;
}
#table-1, #table-2, #table-3 {
width: 40%;
font-weight: bold;
}
#table-1 .column-1, #table-2 .column-1, #table-3 .column-1 {
background-color: #000000;
color: #fff;
width: 40%;
}
I'm struggling to figure out how to position table1 as desired. Each table also has a heading above it.