The lower border of the nested table is not being shown

I am currently facing an issue with a nested table (class="inner-table") in Angular. The border-bottom property applied to the tr is not being displayed.

<table>
   <td>
       <table class="inner-table">
          <tr>row1</tr>
          <tr>row2</tr>
       </table>
   </td>
</table>


CSS
.inner-table tr{
    text-overflow: ellipsis; 
    overflow: hidden; 
    white-space: nowrap;
    line-height: 2;
    border-bottom: 1px solid black;    
}

Answer №1

tr borders only apply when using collapsed border mode. Make sure to check the inline style attribute on the inner table below.

.inner-table tr{
    text-overflow: ellipsis; 
    overflow: hidden; 
    white-space: nowrap;
    line-height: 2;
    border-bottom: 1px solid black;    
}
<table>
   <td>
       <table class="inner-table" style="border-collapse: collapse">
          <tr><td>row1</td></tr>
          <tr><td>row2</td></tr>
       </table>
   </td>
</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

The initial value in the textarea field

Recently, I have been experimenting with adding a default value to a textfield using the code below: <textarea name="message" id="message" cols="30" rows="5" value="Comment" class="form_text text-input shadow" title="Comment" onblur="if (this.v ...

View page content above the keyboard in Ionic 2 by scrolling up

Attempting to create a login screen using Ionic where my fields are centered on the page. When I tap on an input field, I want the screen to scroll up to ensure that both the field and the login button remain in the center of the application screen. I cur ...

Ways to correct the issue of multiple <div>s overlapping each other after being rotated by 90 degrees

Can someone assist me with rotating multiple divs without them overlapping? Below is a simplified version of my code: <div> <div class="rect"></div> <div class="rect"></div> <div class="rect"></div> & ...

Angular 4 router issue: Outlet has already been activated and cannot be activated again

I recently updated my application from Angular2 to Angular 4. Previously, everything, including routing, was functioning flawlessly. However, since the upgrade, I have encountered issues with routing. Whenever I click on a link, the redirection fails and ...

Issue: Unable to locate control with undefined name attribute

I'm in the process of developing a reusable file upload component. The component is functioning correctly, but I am encountering some issues with adding validations. Whenever I try to add validations, an error message pops up on the console saying "Er ...

Are you looking to denormalize your ngrx store and configure selectors?

I am currently dealing with a complex data structure in an ngrx project. It consists of nested parent objects with multiple levels of child objects, which are normalized on the server side. Here is an overview of my store's layout: rootObjs: { le ...

Creating unique image control buttons for each image within a div using a combination of CSS and JavaScript

How can I create image control buttons, such as close, resize, and rotate, for each individual image when hovering over it? Each image is contained within a draggable div. I want to display an image control button next to each image. This button should on ...

Apply this class exclusively for mobile devices

Is there a way to add the class p-5 only for mobile devices? For desktop computers: <nav class="navbar navbar-expand-lg navbar-light bg-light" style="padding:0px 10px 0px 10px;"> For mobile devices: <nav class="navbar navbar-expand-lg navbar-l ...

How can I alter the text color on hover within a Material UI card? My goal is to have the text color change when hovering over the card itself, rather than just the text

When I apply CSS to the card hover effect, it works fine. However, I also want to change the text color along with the card color on hover. card: { maxWidth: 350, height: 300, '&:hover': { backgroundColor: '#373737 !impor ...

Utilize Bootstrap and Flat UI to enhance the design of a div, or duplicate the styles to apply to the navbar

My navigation bar was created using Bootstrap and Flat UI on top of it. However, when I try to incorporate bootstrap+flat ui into another HTML+CSS file that I have, the hexagons end up looking distorted. It seems like my navigation bar only works with flat ...

Present the outcome in the specified location

I need to quickly test my code and display the result in a specific area. There's a button that should trigger something to be displayed when clicked. Right now I'm just using an alert for testing purposes. $(document).ready(function () { ...

The practice of following the UpperCamelCase convention post object transformation

I encountered a situation where I have an object that returned the result from an RxJs subscribe method: result: any { message: null role: Object success: true } To better manage this object in TypeScript, I decided to convert it to a type ca ...

What is the best way to center the circle and arrow within the border using CSS?

When the "hit" button is clicked, the arrow should move to touch the circle and change the color of the circle. My goal is to position the circle on the left side and center, with the arrow on the right side and center. section { border: 3px solid bl ...

jQuery UI Datepicker extending beyond its bounds

My Datepicker is expanding and filling the entire screen. What could be causing this issue? Here is my code: Additionally, how can I change the date format in jQuery to appear as dd-mm-yyyy? https://i.stack.imgur.com/IQzVV.png HTML: <!DOCTYPE html&g ...

Switching the entire div when hovering and switching back when hovering out

I have a table and I am trying to change one div to another div when hovering over it, and then change it back when the hover out event occurs. Here is my table: <table id="table2"> <body> <tr> <td> <div id="c ...

What is the best method for accessing a single product by its unique ID parameter in MongoDB?

Seeking assistance in retrieving specific product details by id from MongoDB via params. While able to fetch all products, unsure how to retrieve the details of a single product upon selection. Any advice is appreciated. API.js router.route('/product ...

How can I exclude .map.js files in Angular 2?

Can someone help me figure out how to exclude all .js.map files in my Angular 2 project? I've tried various combinations in my .gitignore file, but none of them seem to be working. *.log typings src/app/**/*.js src/app/**/*.map node_modules .idea/ sr ...

CSS menu displayed in inline-block is not functioning as expected

Struggling with a CSS menu that I'm developing. Despite applying the display:inline-block to all elements, the menu items continue to display vertically rather than inline. Any tips on how to resolve this issue? View the code here: http://jsfiddle.net ...

The Angular Behaviour Subject is failing to accurately represent the change status within the component

I am currently working on a MEAN project that involves an Angular Behaviour Subject emitting the status of the logged-in user. Issue: After the user logs in, the app component detects the change in user status. However, the header component (which is part ...

The most effective method for incorporating a header and footer into an HTML page utilizing a variety of client-side frameworks

Looking for a solution for my HTML project where I want to incorporate a header and footer to minimize rework. Any suggestions on a good approach? I have experimented with AngularJS using ng-include, and here is the code snippet: var app = angular.module ...