javascript - how do I make an invisible table with 1 column at the left and 2 columns at the right using html, css or js? -
#right
div needs in right column , height must same sum of #leftbottom
's height , #lefttop
's height (left column).
the following html example:
#right { background-color: orange; width: 45%; margin: 10px; border-color: darkorange; border-style: solid; border-width: thin; } #leftbottom, #lefttop { background-image: url(images/backgrnd2.png); background-repeat: no-repeat; background-position: center; background-size: 102% 100%; width: 40%; margin: 10px; }
<div class="body"> <div id="right"> <a>home</a> <p>featured theory of day:</p> <p>area 51<br/>why government hide truth behind these?</p> <a>continue reading>>></a> <p>is true?</p> <p>the hollow earth, agharta<br/>know more center of earth , inside of it?</p> <a>continue reading>>></a> <p>theoretical explanation:</p> <p>spongebob squarepants , 7 deadly sins<br/>help ruin childhood theory.</p> <a>continue reading>>></a> <p>play brain!</p> <p>crime logic<br/>who kill innocent victim?</p> <a>continue reading>>></a> <p>stories life</p> <p>how survive middle school?<br/>may these inspiration us.</p> <a>continue reading>>></a> </div> <div id="lefttop"> <h1>timeline of posts:</h1> <ul> <li>2017</li> <li>2016</li> <li>2015</li> <li>2014</li> </ul> </div> <div id="leftbottom"> <h1>featured article:</h1> <p><a>spongebob theory</a></p> <p><a>area 51</a></p> <p><a>aliens</a></p> <p><a>phineas , ferb theory</a></p> <p><a>cartoon theories</a></p> </div> </div>
you can use float:right
in #right
#right { background-color: orange; width: 45%; margin: 10px; border-color: darkorange; border-style: solid; border-width: thin; float: right; } #leftbottom, #lefttop { background-image: url(images/backgrnd2.png); background-repeat: no-repeat; background-position: center; background-size: 102% 100%; width: 40%; margin: 10px; }
<div class="body"> <div id="right"> <a>home</a> <p>featured theory of day:</p> <p>area 51<br/>why government hide truth behind these?</p> <a>continue reading>>></a> <p>is true?</p> <p>the hollow earth, agharta<br/>know more center of earth , inside of it?</p> <a>continue reading>>></a> <p>theoretical explanation:</p> <p>spongebob squarepants , 7 deadly sins<br/>help ruin childhood theory.</p> <a>continue reading>>></a> <p>play brain!</p> <p>crime logic<br/>who kill innocent victim?</p> <a>continue reading>>></a> <p>stories life</p> <p>how survive middle school?<br/>may these inspiration us.</p> <a>continue reading>>></a> </div> <div id="lefttop"> <h1>timeline of posts:</h1> <ul> <li>2017</li> <li>2016</li> <li>2015</li> <li>2014</li> </ul> </div> <div id="leftbottom"> <h1>featured article:</h1> <p><a>spongebob theory</a></p> <p><a>area 51</a></p> <p><a>aliens</a></p> <p><a>phineas , ferb theory</a></p> <p><a>cartoon theories</a></p> </div> </div>
Comments
Post a Comment