Android Question Webview Table Fixed Headers

harinder

Active Member
Licensed User
Longtime User
I use webviews to display table data.

I'd like to be able to make the column headers stay
at the top of the webview when I scroll the table.

I assume it needs css or html but I don't know much about them.

Does anyone know how to do this?

Regards....
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

harinder

Active Member
Licensed User
Longtime User
yes I googled that earlier but what text do I change in process_globals of dbutils:
B4X:
Private HtmlCSS As String = $"
        table {width: 100%;border: 1px solid #cef;text-align: centre; }
        th { font-weight: bold;    background-color: #f0f;    border-bottom: 1px solid #99f; }
        td,th {    padding: 4px 5px; }
        .odd {background-color: #fcf; }
        .odd td {border-bottom: 1px solid #cef; }
        a { text-decoration:none; color: #000;}"$
 
Upvote 0
Top