Franco Grech Posted January 11, 2022 Share Posted January 11, 2022 Good Day to all of you. I am having an issue with the UniStringGrid, I Would like to Load HTML to a cell in the Grid, i managed to do this, however i have a gaps in the Cells This is the UniStringGrid and Between the cells there are Gaps how i can remove this? The Code that its in the Cells: function TPricePanel.GetBoxTXT(ADayNo, RightText, LeftText, BoxColor : string) : string; begin Result:= //'<div class="container" style="min-width:' + Self.DefaultColWidth.ToString +'px; min-height:' + Self.DefaultRowHeight.ToString + 'px; position: relative; background-color: ' + BoxColor + ';">' + #13#10 + '<div style="margin: 0px; min-width:' + Self.DefaultColWidth.ToString +'px; min-height:' + Self.DefaultRowHeight.ToString + 'px; position: relative; background-color:' + BoxColor + ';">'+ #13#10 + '<div style="position: absolute; top: 0; left: 10px;" >' + #13#10 + '<p style="font-size: 12px;">' + ADayNo + '</p>' + #13#10 + '</div>' + #13#10 + '<div style="position: absolute; bottom: 0; right: 10px;">' + #13#10 + '<p style="font-size: 15px;">' + RightText + '</p>' + #13#10 + '</div>' + #13#10 + '<div style="position: absolute; bottom: 0; left: 10px;" >' + #13#10 + '<p style="font-size: 15px;">' + LeftText+ '</p>' + #13#10 + '</div>' + #13#10 + '</div>'; //'<div class="box" style="background: blue;"></div>'; end; Thanks for any kind of help Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2022 Share Posted January 11, 2022 Hello, Can you indicate in the screenshot? Quote Link to comment Share on other sites More sharing options...
Franco Grech Posted January 11, 2022 Author Share Posted January 11, 2022 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.