I have successfully integrated an input control and button into my table within the Angular 7
application. When a user inputs text in the control and clicks the add button, the text is appended to the <ul>
list. However, the layout of the <ul>
list appears distorted, possibly due to its container. The example I am referencing utilizes a <div>
. Can anyone assist me in identifying the issue?
Here is the link I've been referring to while attempting to achieve a similar appearance:
This is how it currently looks on my screen:
https://i.sstatic.net/9HIpO.png
HTML:
<table style="width:100%" *ngIf="ManagerStrategyDetails">
<tr>
<td>
<table style="width:100%">
<!-- Table content goes here -->
</table>
</td>
<td style="width: 60%;">
<div class="desc-header">Fund Strategy Description
<span class="pull-right"
style="font-style: italic; font-size: 12px">{{ManagerStrategyDetails.DescLastReviewer}}</span>
</div>
<div style="font-size: 12px; border: solid 1px lightgrey; height: 448px;overflow: scroll;">
<ckeditor [id]="'ckeditor_strategy_desc'" style="font-size: 11px;" *ngIf="EditMode"
debounce="500" [config]="EditorConfig"
[(ngModel)]="ManagerStrategyDetails.FundStrategyDescription"></ckeditor>
<div style="padding: 25px" *ngIf="!EditMode"
[innerHTML]="ManagerStrategyDetails.FundStrategyDescription"></div>
</div>
</td>
</tr>
</table>
CSS:
/* HeroesComponent's private CSS styles */
.heroes {
margin: 0 0 2em 0;
list-style-type: none;
padding: 0;
width: 15em;
}
/* Additional CSS rules for heroes list display */
/* Include badge styling, hover effects, and button styles */
button {
background-color: #eee;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
cursor: hand;
font-family: Arial;
}
button:hover {
background-color: #cfd8dc;
}
button.delete {
position: relative;
left: 194px;
top: -32px;
background-color: gray !important;
color: white;
}
Update 1: