Borders with PHP?

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
:shock:

Anyone know how to make dotted table borders w/ php? Is it even possible? I am pretty new, just looking for any advice.

Thanks in advance!

Frodo
 
This has nothing to do with PHP. PHP has no control over how things are displayed on the client side -- all PHP can do is print the HTML and CSS that changes how it looks on the client side.

That said, the best CSS reference you'll find is the one at w3schools, but here's the gist:
PHP:
<html>
<head>
<style type="text/css" media="screen">
   table.dotted-borders {
      border: 1px dotted blue;
   }
</style>
</head>
<body>
   <table class="dotted-borders">
      <td>Data!</td>
      <td>More data!</td>
   </table>
</body>
</html>
Btw, IE/Win is stupid and displays "dotted" borders like "dashed" ones. Mozilla/Firefox get it right, as do (I think) current versions of Opera and Safari.
 
Code:
/*this is your css*/

table {
  border: 1px[border size] [dashed|dotted] black[any other defined color];
}
 
Back
Top