Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

HTML Help please html code table

HtmlHtml3

Coder
Hello, I need some help. I am interning and they proposed to do this to me, but I am not succeeding, I try to try and it always goes wrong.
I'm listing events and the result looks like this:
https://prnt.sc/13mmkij
And I wanted it to look like this:
https://ibb.co/BqgcbS8
Thank you!

<table class="events-table" >
<thead>
<tr>
<th class="event-time" scope="col" height="10" width="100">Fecha/Hora</th>
<th class="event-description" scope="col">⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀Evento</th>
<th class="event-image" scope="col" height="10" width="300" >⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀Imagen</th>
</tr>
</thead>
<tbody>
<li><tr td align="center">
<td align="center">
#_EVENTDATES<br />
#_EVENTTIMES
</td>
<td>
#_EVENTLINK
{has_location}<br /><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE </i>{/has_location}
</td>
<td>
#_EVENTIMAGE
</td>
</tr></li>
 
You mean like this -
HTML:
<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Title</title>
   
    <style>
        table {
            width: 100%;
        }
        table, th, td {
              color: #0000FF;
              border: 2px solid #7AB6E4;
              border-collapse: collapse;
        }
        th, td {
              padding: 10px;
              text-align: center;
        }
    </style>
</head>

<body>
    <table>
          <tr>
            <th>Event</th>
            <th>Event</th>
            <th>Event</th>
          </tr>
          <tr>
            <td>#_EVENTDATES<br/>#_EVENTTIMES</td>
            <td>#_EVENTDATES<br/>#_EVENTTIMES</td>
            <td>#_EVENTDATES<br/>#_EVENTTIMES</td>
          </tr>
        <tr>
            <td>Image</td>
            <td>Image</td>
            <td>Image</td>
          </tr>
    </table>
</body>

</html>
 

Attachments

  • table.jpg
    table.jpg
    41.3 KB · Views: 4
I thank you very much for your help. What I wanted to say was that the table is exactly the one I want to use, however, as you see in the print I sent you earlier, there was a 3 column table with the same event, the one with the same low, and the one with the same low, and I wanted the first table to show the 3 events.
 
You mean like this -
HTML:
<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Title</title>
  
    <style>
        table {
            width: 100%;
            margin: 20px 0;
        }
        table, th, td {
              color: #0000FF;
              border: 2px solid #7AB6E4;
              border-collapse: collapse;
        }
        th, td {
              padding: 10px;
              text-align: center;
        }
    </style>
</head>

<body>
    <table>
          <tr>
            <th><h2>Title1</h2></th>
            <th><h2>Title2</h2></th>
            <th><h2>Title3</h2></th>
          </tr>
          <tr>
            <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
            <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
            <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
          </tr>
        <tr>
            <td><img src="image1.jpg"></td>
            <td><img src="image1.jpg"></td>
            <td><img src="image1.jpg"></td>
          </tr>
    </table>
</body>

</html>
 

Attachments

  • table.jpg
    table.jpg
    139.2 KB · Views: 1
exactly that, but the data (<table>
<tr>
<th><h2>Title1</h2> </th>
<th><h2>Title2</h2> </th>
<th><h2>Title3</h2> </th>
</tr>
<tr>
<td><p>11/03/2020</p> <p> 10:00 - 12:00 </P> </td>
<td><p>11/03/2020</p> <p> 10:00 - 12:00 </P> </td>
<td><p>11/03/2020</p> <p> 10:00 - 12:00 </P> </td>
</tr>
<tr>
<td> <img src = "image1.jpg"> </td>
<td> <img src = "image1.jpg"> </td>
<td> <img src = "image1.jpg"> </td>
</tr>
</table> "would have to be #_EVENTNAME, #_EVENTdates
, event times and images. and if I basically take this code and change the titles and images to what I said before, the whole table will be with the same event and not with the three as intended.
 
If you are using some plugins than you should figure out the error since I don't have that. If it is working when you use it as row than it must also work when you use the column. Check both code, there must be something which you need to add.
 
This code its who put the normal table one perfectly , can you please see if have any here that I should adapt in the code that you have sent?
<table class="events-table" >
<thead>
<tr>
<th class="event-time" scope="col" text-align: center>Fecha/Hora</th>
<th class="event-description" scope="col">Evento</th>
<th class="event-image" scope="col">Imagen</th>
</tr>
</thead>
<tbody>
<!DOCTYPE html>

<html lang="en">

<head>
<meta charset="UTF-8" />
<title>Title</title>
<style>
table {
width: 100%;
}
table, th, td {

border: 2px solid #7AB6E4;
border-collapse: collapse;
}
th, td {

padding: 10px;
text-align: center;
}
</style>
<tr td align="center">
<td align="center">
#_EVENTDATES<br/>
#_EVENTTIMES
</td>
<td>
#_EVENTLINK


</td>

<td >
#_EVENTIMAGE{500,500}

</td>
</tr>
 
Try this -
HTML:
<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Title</title>
  
    <style>
        main {
            width: 100%;
            display: flex;
        }
        table, th, td {
              color: #0000FF;
              border: 1px solid #7AB6E4;
              border-collapse: collapse;
        }
        th, td {
              padding: 10px;
              text-align: center;
        }
    </style>
</head>

<body>
    <main>
        <table>
              <tr>
                <th><h2>Title1</h2></th>
              </tr>
              <tr>
                <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
              </tr>
            <tr>
                <td><img src="image1.jpg"></td>
              </tr>
        </table>
        <table>
              <tr>
                <th><h2>Title1</h2></th>
              </tr>
              <tr>
                <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
              </tr>
            <tr>
                <td><img src="image1.jpg"></td>
              </tr>
        </table>
        <table>
              <tr>
                <th><h2>Title1</h2></th>
              </tr>
              <tr>
                <td><p>11/03/2020</p><p>10:00 - 12:00</P></td>
              </tr>
            <tr>
                <td><img src="image1.jpg"></td>
              </tr>
        </table>
    </main>
</body>

</html>
 

Latest posts

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom