Note that there are some explanatory texts on larger screens.

plurals
  1. POChanging 3 column 4 row HTML table to Divs
    primarykey
    data
    text
    <p>I basically have my page layout, however I have put my main content in a table in my main div. I need to change this up so I no longer have a table, instead have it all in divs. Below is my code for my main div and screenshot of the design, help would be appreciated.</p> <p><img src="https://i.stack.imgur.com/5BsIx.png" alt="enter image description here"></p> <pre><code>&lt;div id="mainDiv"&gt; &lt;h1&gt;Places to go&lt;/h1&gt; &lt;div id="divBreak"&gt;&lt;/div&gt; &lt;table id="mainTable" rules="ROWS" frame="HSIDES"&gt; &lt;tr&gt; &lt;td id="table1"&gt;&lt;strong&gt;Leeds Castle&lt;/strong&gt;&lt;br&gt; Considered one of the most romantic castles in England, this historic site was originally the stately home of the Saxon royal family during the reign of Ethelbert IV in 856-860.&lt;/td&gt; &lt;td id="table2"&gt;&lt;img class="imageTable" src="./images/leeds.jpg" alt="leeds" name="imageTable"&gt;&lt;/td&gt; &lt;td id="columnRight" rowspan="4"&gt;&lt;strong&gt;Welcome to Maidstone&lt;/strong&gt;&lt;br&gt; Maidstone is the county town of Kent, England, 32 miles (51 km) south-east of London. The River Medway runs through the centre of the town linking Maidstone to Rochester and the Thames Estuary. Historically, the river was a source and route for much of the town's trade. Maidstone was the centre of the agricultural county of Kent, known as the Garden of England. There is evidence of a settlement in the area dating back to beyond the Stone Age. The town is within the borough of Maidstone. In 2001, the town had a population of 75,070. Maidstone's economy has changed over the years from being involved in heavy industry, to more light and service industries.&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;strong&gt;Where we are&lt;/strong&gt; &lt;img src="./images/maidstone_map.gif" alt="Maidstone Map"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td id="table3"&gt;&lt;strong&gt;Mote Park&lt;/strong&gt;&lt;br&gt; Maidstone's largest park, is set in 450 acres of historic parkland. Within walking distance of Maidstone town centre it offers a pleasant and relaxing enviroment, making it a great place to spend the day.&lt;/td&gt; &lt;td id="table4"&gt;&lt;img class="imageTable" src="./images/mote.jpg" alt="Mote Park" name="imageTable"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td id="table5"&gt;&lt;strong&gt;History Museum&lt;/strong&gt;&lt;br&gt; Our exceptional Museum is housed in a charming Elizabethan Manor House, in the centre of Maidstone - Kent's County Town. Each gallery will fascinate and surprise; with a wealth of exhibits and objects to see and enjoy as well as regular storytelling and children's holiday activities. Entry to our Museum is Free!&lt;/td&gt; &lt;td id="table6"&gt;&lt;img class="imageTable" src="./images/museum.jpg" alt="Maidstone Museum" name="imageTable"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td id="table7"&gt;&lt;strong&gt;River Boat&lt;/strong&gt;&lt;br&gt; The Kentish Lady river boat offers a unique experience of the River Medway from a 1 hour trip to 3 hour cruises and is also the perfect setting for a private party.&lt;/td&gt; &lt;td id="table8"&gt;&lt;img class="imageTable" src="./images/boat.jpg" alt="Boat" name="imageTable"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload