Skip to content

A live bird collage card for your Home Assistant dashboard.

a little less ugly

mcguirepr893caa9c3c9575
diff --git a/scripts/play.css b/scripts/play.css
index 7e8560e5..4d7828d9 100644
--- a/scripts/play.css
+++ b/scripts/play.css
@@ -15,12 +15,20 @@ body {
.column {
display:block;
- float:top;
width:33%;
- margin-left:0;
+ margin-left:auto;
margin-right:auto;
}
+.left {
+ float:left;
+}
+
+.right {
+ float:right;
+ width:66%;
+}
+
table {
background-color: rgb(219, 255, 235);
margin: 0 auto;
diff --git a/scripts/play.php b/scripts/play.php
index 33b55525..311e4353 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -27,13 +27,13 @@ $result = $statement->execute();
</style>
</head>
<body>
+<div class="column left">
<?php
while($results=$result->fetchArray(SQLITE3_ASSOC))
{
$comname = preg_replace('/ /', '_', $results['Com_Name']);
$comlink = "/By_Date/".date('Y-m-d')."/".$comname;
?>
-<div class="column">
<table>
<tr>
<form action="" method="POST">
@@ -43,9 +43,10 @@ while($results=$result->fetchArray(SQLITE3_ASSOC))
</form>
</tr>
</table>
-</div>
<?php
}?>
+</div>
+<div class="column right">
<?php
if(isset($_POST['species'])){
$name = $_POST['species'];
@@ -83,5 +84,7 @@ while($results=$result->fetchArray(SQLITE3_ASSOC))
</tr>";
}echo "</table>";}?>
+</div>
+</div>
</body>
</html>