Vanish the boundary in a designated row within a table

Is there a way to remove the last bottom border in a specific row? For instance:

Consider the following code snippet:

 <style>
     .tdSpace {
            background: #FFFFFF;
            width:3px;
            border:1px solid white;        
            }

       .tdIzq  { 
            background: #FFFFFF;
            color: #333333;
            font: small "arial";
            border:1px solid white;
            border-right:solid #E1E1E1;
            border-left:solid #7AC142;         
            border-width:1px;  
            border-left-width:2px;      
            }

           .tdIzq2  {
            background: #FFFFFF;
            color: #333333;
            font: small "arial";
            border:0px solid white;
            border-right:solid #E1E1E1;
            border-left:solid #7AC142;         
            border-width:1px;  
            border-left-width:2px;  
            text-align:right;    
            }

         .tdSueldo  {
            background: #FFFFFF;
            color: #333333;
            font: small "arial";
            border:1px solid white;
            border-right:solid #7AC142;
            border-left:solid #7AC142;         
            border-width:2px;  
            text-align:right; 
            }

      .GvGrid tr:hover
        {
            background-color: #000;
            font-family: Arial;
        }

      #GvGrid tr.rowHover:hover
        {

            background-color: Yellow;
            font-family: Arial;
        }

    .GvGrid th {
            background: #7AC142;
            padding: 10px;
            font-size:12px;
            color:#FFFFFF;
            border-collapse:collapse;
            font-weight:bold;
            width: 60px;
            }
 </style>

 <asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table id="TblCom" runat="server" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:GridView ID="Gv" runat="server" AutoGenerateColumns="False" ClientIDMode="Static" RowStyle-CssClass="GvGrid" CellPadding="1">
                                <HeaderStyle CssClass="GvGrid" HorizontalAlign="Center" />
                                <Columns>
                                   <asp:BoundField DataField="UTILIDAD_BRUTA" HeaderText="U.B." DataFormatString="{0:N2}">
                                        <ItemStyle Width="100px" CssClass="tdDer"/>
                                    </asp:BoundField>
                                     <asp:BoundField>
                                        <HeaderStyle BackColor="White" Width="1px" />
                                        <ItemStyle CssClass="tdSeparador" />
                                    </asp:BoundField>
                                     <asp:BoundField DataField="TOTAL" HeaderText="COMISION MAYOR" DataFormatString="{0:N2}">
                                         <ItemStyle Width="50px" CssClass="tdSueldo" />
                                    </asp:BoundField>
                                     <asp:BoundField>
                                        <HeaderStyle BackColor="White" Width="1px" />
                                        <ItemStyle CssClass="tdSeparador"/>
                                    </asp:BoundField>
                                     <asp:BoundField DataField="SALES" HeaderText="SALES" DataFormatString="{0:N2}">
                                        <ItemStyle Width="70px" CssClass="tdIzq2" />
                                    </asp:BoundField>
                                     <asp:BoundField DataField="COM" HeaderText="COM" DataFormatString="{0:N2}">
                                         <ItemStyle Width="70px" CssClass="tdDinero" />
                                    </asp:BoundField>
                                     <asp:BoundField DataField="TOTAL" HeaderText="TOTAL" DataFormatString="{0:N2}">
                                       <ItemStyle Width="70px" CssClass="tdDer"/>
                                    </asp:BoundField>
                                </Columns>
                            </asp:GridView>                               
                            <br />
                        </td>
                    </tr>
                </table> 

I want to remove only the last <td> bottom border in the = CssClass="tdSeparador". I attempted using the following code:

            .tdSpace {
              background-color: #FFFFFF;
              border-bottom: 10px solid black;  
              border-right-style:solid;  
              border-left-style:solid;
             }

The issue I encountered was that it removed the border in every td. Attached is an image for reference:

Answer №1

Consider using border-bottom:none; as an alternative

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

Localization feature in ASP.NET MVC 6 for DisplayAttribute

Is it possible to utilize IHtmlLocalizer from ASP.NET MVC6 directly with POCO classes? I currently have several viewmodels that make use of the DisplayAttribute to display translated strings in views and validators. However, this requires creating an addit ...

The jquery click event does not trigger the closing of the sliding menu

Check out this relevant JSFiddle link: http://jsfiddle.net/7u2fy/ I tried creating a slide-in menu that would appear when a button is clicked and disappear when the escape key is pressed or when anywhere outside of the menu is clicked. I also wanted to da ...

Incorporate a comma after the second or third digit to separate currency values in JavaScript

Is there a way to add commas to currency values at the 3rd or 2nd place depending on the value itself? The desired output format is: 1000 => 1000 10000 => 10,000 210000 => 2,10,000 2010000 => 20,10,000 12010000 => 1,20,10,000 I am currentl ...

How to place a Div element in the middle of a webpage

My webpage background features an image of old Tbilisi, and here is the code I am using: <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <style> #links { margin: 0 auto; ...

jQuery will envelop the HTML elements in an inconsequential div

Imagine a website that is visually complex, with various styles and images positioned in different ways. What if we wanted to add a small overlay icon above each image? At first, the solution might seem simple - just use absolute positioning for a span el ...

Issue with CSS background inner shadow not covering entire background area

A question has arisen regarding the implementation of an inner shadow effect for a background picture that is set to repeat. The current code used for the shadow effect is as follows: background: #202020 url(images/img01.jpg) repeat; -moz-box-shadow: inse ...

What are the best testing frameworks for ASP.NET websites and what makes them the top choices?

I am currently using visual studio 2005 and my team has suggested that I explore testing frameworks for asp.net websites. As a newcomer to the world of testing, I am curious about the possibilities of automated testing. Can I test my business logic? Can ...

Any ideas on how to fix the error that pops up during the installation of the bootstrap package in Node

The npm command is not recognized as a valid cmdlet, function, script file, or operable program. Please double check the spelling of the command and ensure that the path is correct before trying again. This error occurred at line 1. npm i bootstrap + ...

Developing shapes using CSS and jQuery

I am struggling to create the exact contour as shown in the image. Despite trying, I have not been successful in achieving it. I used a lot of HTML child tags in my attempt, but I would prefer to keep it minimal. Is there a simpler way to accomplish this? ...

Finding the Perfect Placement for an Element in Relation to its Companion

Is there a way to achieve an effect similar to Position Relative in CSS using jQuery? I have developed a tooltip that I want to attach to various objects like textboxes, checkboxes, and other text elements. My code looks something like this: <input i ...

What's the best way to incorporate mouseenter() and mouseleave() into several elements sharing the same class?

I have a vision for a fun game where players must navigate from one platform to another without falling off the edges. The game starts when you hover over the initial platform, and success is achieved by reaching the final platform. However, failure occurs ...

Bootstrap 5: The alignment of NAV items to the right is off

Is there a way to align the navigation items to the right side? I'm currently using Bootstrap 5 and leveraging the navigation feature. By default, the items are positioned on the left, however, I wish to move them to the right side. I have tried util ...

What are some solutions for adjusting this sidebar for mobile devices?

My mobile version sidebar is not functioning properly on my website. To see the issue, you can visit Zinexium. As I am new to HTML, I don't know how to fix it. Here is a link to the code. Thank you! <!DOCTYPE html> // Code snip ...

Utilize the CSS content property to embed an image without causing it to distort in size

Struggling to swap out one image for another without stretching it? In my demo, I replaced an elephant with a lion using only CSS - no changes allowed to the HTML. Unfortunately, the lion image ends up stretched. Even adding background-size: cover doesn&ap ...

Delete items within the first 10 minutes of shutting it down

Is there a way to temporarily remove a newsletter element for 10 minutes after closing it on a webpage? The idea is that once the panel is closed, it should stay hidden even if the page is refreshed within that timeframe. I was considering using local stor ...

What could be causing the issue with the jquery height function not functioning properly

I am working on a website where the menu bar and footer need to be 50px in height as shown in the image. In between the nav and footer, there is a content div that should occupy the remaining space. To achieve this, I plan to use Jquery to calculate the do ...

Using Internet Explorer will display a vastly different blueprint site compared to what you see on Firefox or

I've been utilizing the Blueprint CSS framework for my website development in order to ensure compatibility across different browsers, but unfortunately it's not rendering properly in IE. The main body is off-center, the image positioning is inco ...

Utilizing Ajax to fetch a div element from a web page

Hey there! I have a link set up that loads a page into a specific div ID, which is #ey_4col3. The issue I'm facing is that it loads the entire page along with all its contents, but what I really want to load from that page is just the content within ...

Eliminate border around image

I've been trying to get rid of the image border using different methods img { border: 0px; } I even attempted to remove it from the browser console with this code border: none !important This is what my html code looks like <div id="startD ...

Optimize your mobile experience by creating a notification menu that is scrollable and fixed in position

Recently, I purchased Moltran, but encountered a major issue: The notification menu disappears on mobile devices, which is not ideal for me. After some research, I discovered that removing the hidden-xs class from the li notification element can solve this ...