From 6306592c1ad8b8e68b41d9b5fe5c1a406de32886 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 21 Dec 2015 19:50:49 +0100 Subject: [PATCH] css --- src/arenas/Battleship/functions.php | 2 -- src/arenas/Battleship/style.css | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index ae7677c..0fc1769 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -83,8 +83,6 @@ function place_ship_on_map($x1,$y1,$x2,$y2,$map){ OR (!isset($map[$y2][$x2]))){ return false; } - - if($x1 == $x2){ //horizontal ship if($y1 <= $y2 ){ diff --git a/src/arenas/Battleship/style.css b/src/arenas/Battleship/style.css index 3c5082f..86eef23 100644 --- a/src/arenas/Battleship/style.css +++ b/src/arenas/Battleship/style.css @@ -3,7 +3,7 @@ article p label {float:left; text-align:right; width:60%} article p select {} td{min-width: 15px; height: 15px;} #fightResult{display:table;} -#logs{display:table-cell;padding-left:10px; height: 300px; overflow-y: scroll;} +#logs{display:block;padding-left:10px; height: 300px; overflow-y: scroll;} .battleshipGrid{display:table-cell; padding-left:10px; border-collapse:collapse; margin: 20px 20px 20px 20px;} .nofloat{float: none;} .battleshipGrid tr{}