Skip to main content

How to add advanced HTML Table Colgroup to blogger post

How to add advanced responsive HTML Table Colgroup to blogger post Colors and Backgrounds example with output


Table HTML can have outer border colors as well as cell border colors. They also can have background colors, patterns, and graphic images as backdrops for the full table or for selected rows and cells.

How to add advanced responsive HTML Table Colgroup to blogger post Colors and Backgrounds example with output  Tables HTML can have outer border colors as well as cell border colors. They also can have background colors, patterns, and graphic images as backdrops for the full table or for selected rows and cells.  How to add advanced HTML Table Colgroup to blogger post     If you want to style the two first columns of a table, use the <colgroup> and <col> elements.   The <colgroup> element should be used as a container for the column specifications.  Each group are specified with an <col> element.  The span the attribute specifies how many columns that get the style.  The style attribute specifies the style to give the columns.       <!DOCTYPE html> <html> <head> <style> table, th, td {   border: 1px solid black;   border-collapse: collapse; } </style> </head> <body>  <h2>Colgroup</h2> <p>Add the a colgroup with a col element that spans over two columns to define a style for the two columns:</p>  <table style="width: 100%;"> <colgroup>   <col span="2" style="background-color: #D6EEEE"> </colgroup> <tr> <th>MON</th> <th>TUE</th> <th>WED</th> <th>THU</th> <th>FRI</th> <th>SAT</th> <th>SUN</th> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> </tr> <tr> <td>8</td> <td>9</td> <td>10</td> <td>11</td> <td>12</td> <td>13</td> <td>14</td> </tr> <tr> <td>15</td> <td>16</td> <td>17</td> <td>18</td> <td>19</td> <td>20</td> <td>21</td> </tr> <tr> <td>22</td> <td>23</td> <td>24</td> <td>25</td> <td>26</td> <td>27</td> <td>28</td> </tr> </table>  </body> </html>     Copy Video Link
How to add advanced HTML Table Colgroup to blogger post


If you want to style the two first columns of a table, use the <colgroup> and <col> elements. 

The <colgroup> element should be used as a container for the column specifications.

Each group is specified with an <col> element.

The span the attribute specifies how many columns that get the style.

The style attribute specifies the style to give the columns.




Colgroup

Add the a colgroup with a col element that spans over two columns to define a style for the two columns:

MON TUE WED THU FRI SAT SUN
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28

Comments

Popular posts from this blog

Simple free calorie calculator BMR TDEE basal metabolic rate counter

Simple free calorie calculator BMR TDEE basal metabolic rate counter Have you ever wondered how many calories your body burns just by existing? That's where your Basal Metabolic Rate (BMR) comes in – the foundation for understanding your daily energy needs. But calculating BMR can feel like a scientific equation. Here's where BMR calculator tools come to the rescue! Simple free calorie calculator BMR TDEE basal metabolic rate counter What is a BMR Calculator Tool? An online BMR calculator is a user-friendly tool that estimates your Basal Metabolic Rate based on factors like age, weight, height, and gender. Simply input your information, click calculate, and voila! You'll have a personalized BMR estimate. Why is BMR Important? BMR is a crucial metric for anyone looking to manage their weight. It represents the minimum number of calories your body burns at rest to maintain vital functions. Knowing your BMR helps you: Set realistic weight loss/gain goals: By understanding you...

How to add a responsive code box in the blogger post clipboard copy button

How to add a stylish responsive code box in blogger post clipboard copy button In this post of Blogger coding tips , you learn how to create a code box for a blogger blogspot post clipboard that prevents visitors from copying code by using HTML, CSS, and JavaScript.  How to add a responsive code box in the blogger post clipboard copy button 1. Create HTML of blogger code box: Open the HTML view for your Blogger post and create the structure for your code box. Include a <pre> tag for the code and a button for copying. <div class="code-box">     <pre class="code">         <!-- Your code goes here -->     </pre>     <button class="copy-button" onclick="copyCode()">Copy Code</button> </div> 2. Code box Style with CSS: Add some styles to make your code box responsive and visually appealing. You can place the following styles in your post's CSS section or use inline styles within the HTM...

How to add Redirect 404 Not Found Page to the Home Page in Blogger

How to add automotive redirect 404 Not Found Page to the Home Page with  Blogger setting for broken links by javascript code Whenever someone goes on a web page that is either deleted or has no existence Blogger website usually displays its common 404 not found error message for broken links with simple Javascript code. “Sorry for the inconvenience, the page you are looking for has no existence”. The first impression counts more than anything. A person would never desire to display not-found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page URL so users can easily get access to the content that is waiting for them.  So we learn how to use this simple JavaScript code which does the job pretty nicely.  How to add Redirect 404 Not Found Page to the Home Page in Blogger first, you must learn two main about redirect page messages 404 Pages: The 404 not found error message of Blogspot.com is a form of standard H...