php - CSS - removing space between looped form buttons -


*edited include screenshot

i have form looped using php , trying remove spaces between each submit button. aesthetic reasons want able style space between them exactly. can lend insight how can accomplish this?

the positiontext class seems some, , can't seem display:none have affect.

<!doctype html> <html>     <head>         <meta charset="utf-8">     </head> <style>     .positiontext {         line-height: 0%;         } </style> <body> <div class="positiontext"> <?php   ini_set('display_errors',1);  error_reporting(e_all);  $result = file_get_contents('php://input');  require_once 'ircconfig.php';  $connection = new mysqli($db_hostname, $db_username, $db_password, $db_database);     if ($connection->connect_error) die($connection->connect_error);  $date = empty($result) ? date('y-m-d') : $result;     {            $query  = "select * client_checkin date(date)='$date' order f_name asc";         $result = $connection->query($query);          if (!$result) die ("database access failed: " . $connection->error);          $rows = $result->num_rows;     }  ($j = 0 ; $j < $rows ; ++$j)     {         $result->data_seek($j);         $row = $result->fetch_array(mysqli_num);          echo <<<_end         <pre>         <form class="clientsubmit" name="clientsubmit" action="ircpopulatecheckin.php" method="post">         <input type="hidden" name="date" value="$row[0]">         <input type="hidden" name="f_name" value="$row[1]">         <input type="hidden" name="m_name" value="$row[2]">         <input type="hidden" name="l_name" value="$row[3]">         <input type="submit" name="dailyclient" value="$row[1] $row[2] $row[3]">         </form>          </pre> _end;     }  ?> </div> <body>  </html> 

a sample output

since form , pre of block types, you'll need put margin: 0 in css.

pre,form{margin: 0} 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -