How to align a chart. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to align a chart.

<html> <p> Hi there, im here. </p> <p> Im still here <br /> just so you know </p> <ol> <li> This is one. </li> <li> This is two. </li> <li> This is three. </li> </ol> <ul> <li> This is one again. </li> <li> This is two again. </li> <li> This is three again. </li> </ul> <p> Im going to do this again </p> <p> Here we go <br /> I hope this works. </p> <ul> <li> Im also going to do this again </li> <li> I hope this works </li> </ul> <p align="center"> Hi. </p> <P align="left"> Hi. </P> <p align="right"> Hi. <p><b> I hope this works. </b></p> <p><i> I hope this <br />one works to. </i></p> <p>Lets try<br />This now</p> <p align"right"> Hi. <p> <font color="#FF0000"> White headline </font> </p> <p> Hi im luke. </p> <hr /> <hr width="100px"/> <hr width="150" /> <hr width="200" /> <hr width="250" /> <hr width="300" /> <hr width="350" /> <table border="2"> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> <td>Yellow</td> </tr> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> <td>Yellow</td> </tr> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> <td>Yellow</td> </tr> In the area where it says a bunch of different colors, it shows up on the left, I want to move it to the middle. If you know how to do this, please tell me, thanks.

6th Dec 2016, 3:46 PM
2skywalkers
2 Answers
+ 1
just put the section or block of the code that you want to align under the <div> ---- code ----- </div> and then use align format under the div. like <div align="center"> code code </div>
6th Dec 2016, 6:03 PM
prince verma
prince verma - avatar
+ 1
prince is right but you should use css for these things it would align all in just few codes of classes and also set width height etc instead of copying pasting attributes at tags
6th Dec 2016, 6:41 PM
Sandeep Chatterjee