Create a table that excludes the content of the initial cell

I am seeking to update my table design. The desired look can be found here.

Currently, my table looks like this: current table.

The key difference I want to achieve is the removal of the first cell (positioned at 0;0) in the desired table design. Additionally, I aim to enhance the border so that it extends through the bottom and right of the removed cell.

This is the current outcome: current result.

Below is a snippet of my code:

table, th, td {
  border: 0.5px solid black;
  border-collapse: collapse;
}

.removeCell {
  visibility: hidden;
}
<!DOCTYPE html>
<html>
  <head>
    <title>Document Title</title>
    <link rel="stylesheet" href="css\desktopStyle.scss">
  </head>
  <body>
    <table>
      <tr>
        <th class="removeCell">Month</th>
        <th>Data</th>
      </tr>
      <tr>
        <td>January</td>
        <td>10.01.2014</td>
      </tr>
      <tr>
        <td>February</td>
        <td>10.01.2014</td>
      </tr>
    </table>

Answer №1

please remove the border from the first column in the table

td{
border: 1px solid black;
width:40px;
height:10px;

}
table{
border-collapse:collapse;
}

#one{
border:none;
}
<table>
<tr>
<td id='one'></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to ensure the logo is centered when the screen size reaches 750?

Looking to center the logo on a media screen size breakpoint? View the photo (Here): https://i.stack.imgur.com/UnB2F.png Check out my code below: .logo img { padding: 15px; width: 125px; } <nav> <ul class='nav-bar'> < ...

I have a task to retrieve a specific element from a HTML tag using BeautifulSoup4

Having a bit of trouble here - I've got this tag in my soup and I'm trying to extract the date from the 'value' element. <input class="mm-date-field form-control input-sm date-picker" title="Select as of date" typ ...

CSS3 functions properly on jFiddle, but is not compatible with Internet Explorer

This is a snippet of my code that includes a CSS animation. You can view the live version on JsFiddle here. When I open the JsFiddle link in IE, everything works perfectly as intended. However, when I try to run the same code locally, I encounter issues ...

Explore the possibility of utilizing Excel VBA to locate images from websites and seamlessly import them into

Right now, my main goal is to browse an open webpage in search of multiple png images and then import them into various cells within a tab on my Excel workbook. The current macro I have takes me through the webpage where I can see which pictures are displ ...

The Div element on my webpage is not adjusting properly to fit the size of mobile devices

My app was created using Quick flip 2, and I needed to resize it for mobile screens, so I implemented jquery-mobile. Here is the code snippet: <!--css--> <style> .quickFlip, .quickFlip3 { height: 350px; width: 400px; } .quickFlip2 { ...

Tips for aligning content vertically within a header:

I'm currently working on creating a responsive header with two columns. My goal is to have the button in the right column vertically centered. I am aware of the method for centering items using 'top: 50%; margin-top: -xy px', but my button ...

Exploring LESS - improving CSS output by utilizing mixins for rule optimization

I've recently started experimenting with LESS. I decided to create rules for elements with numeric IDs, leading me to this code snippet: @myRule: {padding: 0;}; .myLoop(@c, @rules) when (@c >= 0) { .myLoop((@c - 1), @rules); &[id*=@{c ...

The jQuery animate function fails to execute the specified animation (changing margin-left from -200 to +200)

I've been attempting to achieve a sliding effect for some text coming in from the left using .animate, but it's not working as expected. Styling (CSS) .body #header > a { font-family: Georgia, Courier, Verdana; font-size: 30px; p ...

Tips for adjusting the navigation values on a secondary page without impacting the navigation on the homepage

I'm new to working with HTML and CSS, and I'm struggling to adjust the padding and margin of my navigation bar on a second page without it impacting the main index page. Note: I want to give the nav bar a slightly different style on the second p ...

Is it possible to customize the appearance of the Facebook and Twitter sharing buttons?

Whenever I try to use the Twitter and Facebook share functionality, I am presented with the standard default share buttons that resemble: https://i.sstatic.net/W5ZN8.png https://i.sstatic.net/0MW3U.png I have reviewed the policies, which indicate: Do not ...

Cheerio module in Node.js is converting double quotes to &quot

My software application is making a request to a server and receiving HTML content in response. After receiving the HTML, I am using the Cheerio library to modify the domain names found in the HTML. However, when the HTML content is converted to a string ...

How can I vertically center a back button in jQuery Mobile?

Recently, I've been incorporating the back button into my jQuery Mobile page. One thing I'm trying to achieve is vertically aligning the back button in the header. Appreciate any help in advance! ...

Is the Mini Cart button in Woocommerce not aligned properly?

My website was functioning perfectly until yesterday. However, after updating some plugins, the Mini Cart dropdown button started to display in a weird and misaligned manner. https://i.sstatic.net/SsZee.jpg Prior to the plugin updates, the button had the ...

Implement Java code to transform HTML into XML format

<TBODY> <TR> <TD colSpan=4>Details of your Travel</TD></TR> <TR></TR> <TR> <TD colSpan=4>Booking Reference : XXX</TD></TR> <TR></TR> <TR> <TD>Passenger& ...

What can I do to prevent Bootstrap sections from overlapping on smaller screens?

While my website looks great on my laptop screen, I'm facing an issue when viewing it on a smaller device. The text from the first section is overflowing into the lower section, which disrupts the layout. Despite being new to bootstrap, I've trie ...

Changing the CSS class of list items in a navigation: Tips and tricks

Looking to create a navigation menu that changes the CSS class to 'active' when selected? Take a look at the code below: <ul class="smallmenuContainer"> <li><a class="active" href="index.html#red">Home</a></li&g ...

Is there a way to remove text from a div when the div width is reduced to 0?

Upon loading the page, my menu is initially set to a width of 0px. When an icon is clicked, a jQuery script smoothly animates the menu's width to fill the entire viewport, displaying all menu items (links) perfectly. The issue I'm facing is that ...

Incorporate imagesloaded.js into your PHP script to seamlessly import images from a designated folder

I've implemented the code below into a bootstrap modal to display images from a website folder. These images are loaded using lazyload.js when the modal is opened. Sometimes, there's a delay in displaying images depending on their sizes. I'd ...

CSS allowing for numerous background positions

I'm working on a creative resume website and running into an issue with the backgrounds. I have three background images - one showing a mountain and sky, another with just the mountain, and a hidden Easter egg. The front and back layers are scrollable ...

Tips for styling PHP-generated HTML code

I have a snippet of HTML code that needs to be displayed within a specific <div> tag. The HTML code is as follows: <form id="web_formsGenerateFormForm" method="post" accept-charset="utf-8"> <input type="hidden" name="_method" value="POST"/& ...