Forum Moderators: not2easy
<div style="padding: 10px; line-height: 40px">
<div id="child_1" style="float: left; height: 40px; width: 32%; margin-right: 1%">
<div style="float: left">
<img src="$image_1">
</div>
<div style="float: left">
Blah
</div>
<div style="clear: both"></div>
</div>
<div id="child_2" style="float: left; height: 40px; width: 32%; margin-right: 1%">
<div style="float: left">
<img src="$image_2">
</div>
<div style="float: left">
Blah 2
</div>
<div style="clear: both"></div>
</div>
<div id="child_3" style="float: left; height: 40px; width: 32%">
<div style="float: left; font-family: Times New Roman; font-size: 18pt">
Blah blah
</div>
<div style="float: left">
Blah 3
</div>
<div style="clear: both"></div>
</div>
</div>
here is an example with which you may like to play around...
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>untitled document</title>
<link rel="stylesheet" href="screen.css" media="screen">
<style media="screen">
body {
background-color: #f0f0f0;
font: 100% / 162% verdana, arial, helvetica, sans-serif;
}
#container {
display: table;
width: 100%;
border-spacing: 0.625em;
border: 1px solid #999;
border-radius: 0.75em;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0.4em 0.4em 0.4em rgba( 0, 0, 0, 0.3 );
}
.box {
display: table-cell;
width: 33.333%;
padding: 2%;
border: 1px solid #999;
border-radius: 0.5em;
box-sizing: border-box;
background-color: #fee;
box-shadow: inset 0 0 0.4em rgba( 96, 0, 0, 0.5 );
vertical-align: middle;
}
.box img {
display: inline-block;
width: 20%;
height: auto;
border: 1px solid #000;
vertical-align: middle;
}
.box div {
display: inline-block;
margin: 0 1%;
}
.descript {
font-family: 'times new roman', serif;
font-size: 1.5em;
}
</style>
</head>
<body>
<div id="container">
<div class="box">
<img src="http://placehold.it/324x200" width="324" height="200" alt="desc">
<div>Blah</div>
</div>
<div class="box">
<img src="http://placehold.it/324x200" width="324" height="200" alt="descr">
<div>Blah 2</div>
</div>
<div class="box">
<div class="descript">Blah blah</div>
<div>Blah 3</div>
</div>
</div>
</body>
</html>
please do not confuse the CSS "display: table" attribute
with the HTML "table element". :(
The former is a legitimate and well used display method
whereas the latter is the semantic element for displaying
tabular data. ;)
I would not have prepared it for you if was anything other
than kosher. :)
I would suggest that you spend a little more time studying
CSS methodology and you really should stop using inline
styling, it is a very bad habit.
Use internal styling only whist coding a page, then on
completion transfer it to an external file.