Eduardo Ruesta
07/02/2024, 3:03 PMEduardo Ruesta
07/02/2024, 3:03 PMRyan Scott
07/02/2024, 3:33 PMColumn
. If you want a horizontal layout, Row
should be your go-to. So I think you have the right idea there.
As an Android engineer, I also am on the CSS learning curve. This has been a good resource for me: https://www.w3schools.com/S.
07/02/2024, 3:37 PMRyan Scott
07/02/2024, 3:37 PMS.
07/02/2024, 3:37 PMEduardo Ruesta
07/02/2024, 4:04 PMDavid Herman
07/02/2024, 7:35 PMDavid Herman
07/02/2024, 7:36 PMDavid Herman
07/02/2024, 7:36 PMRow
and Column
Kobweb primitives can be pretty good for this.David Herman
07/02/2024, 7:38 PMEduardo Ruesta
07/02/2024, 8:45 PMDavid Herman
07/02/2024, 8:50 PMEduardo Ruesta
07/02/2024, 9:14 PM<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #04AA6D;
color: white;
}
</style>
Eduardo Ruesta
07/02/2024, 9:15 PMtd
or th
thing to use in a modifierS.
07/02/2024, 9:15 PMEduardo Ruesta
07/02/2024, 9:16 PMRyan Scott
07/02/2024, 10:54 PMDavid Herman
07/02/2024, 10:58 PMhow do i know thisGenerally looks something like this:ortd
thing to use in a modifierth
val CustomerTableStyle = CssStyle {
cssRule("td") { ... }
cssRule("th") { ... }
cssRule("tr:hover") { ... }
}
Table(CustomerTableStyle.toAttrs() {
...
}