Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I really like this theme, but I am puzzled as how to get rid of these borders. (image attached) I am calling the info with PHP from a SQL database. The PHP code writes the table and a new table row for each entry in the database until there are no more entries. Here is a snippet of the PHP below. I looked in the styles.css and couldn't find where to get rid of the border. I also have a link to another style sheet for this page. Any suggestions would be greatly greatly appreciated. And thanks for all of your hard work on making this theme available to the community.
<link href="http://localhost:8888/chamber/sites/default/files/members/css/members.css" rel="stylesheet" type="text/css">
<a name="top"></a>
<?php
// Make a MySQL Connection
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("members") or die(mysql_error());
// Get all the data from the "example" table
$result = mysql_query("SELECT * FROM member_directory ORDER BY business_cat1 ASC")
or die(mysql_error());
// ********** Here is where the table begins *************
echo "<table>";
// keep track of the business category, and only print it once.
$last_cat = " ";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// BUSINESS CATEGORY
if (($row['business_cat1'] != "") && ($row['business_cat1'] != $last_cat)){
echo "<tr><td colspan='5' class=\"divider\">";
if ($last_cat != " ") {
echo ("<img width=\"540\" height=\"1\" src=\"http://localhost:8888/chamber/sites/default/files/pictures/divider.png\">");
echo " ", ("<a class=\"top\" href=\"#top\">top of page</a>");
}
else
{
echo "<tr height='30'></tr>";
}
echo "</td></tr>";
echo "<tr><td colspan='5' class='header' align='left'>";
echo $row['business_cat1'];
echo "</td></tr>";
$last_cat = $row['business_cat1'];
}
?>
Comment | File | Size | Author |
---|---|---|---|
danland.png | 62.14 KB | titusbass |
Comments
Comment #1
danpros CreditAttribution: danpros commentedHi,
The css for table border is
You can set it to
border:none;
Dan
Comment #2
titusbass CreditAttribution: titusbass commentedHi Dan,
Thanks. Worked great. That was so simple, I'm almost embarrassed. Sorry I couldn't find it in the first place.
Comment #3
TTelenko CreditAttribution: TTelenko commentedI have changed the
tr td, tr th {
border:1px solid #bbb;
padding: 0 6px;
}
and it didn't work. I still have borders. I have changed the
/* Code to eliminate daft 1px line from themes having tables inside a page */
tbody {
border-top: 0px solid #ccc;
}
/* Code to eliminate daft 1px line from bottom of node content */
.node {
border-bottom:0px solid #BBBBBB;
}
to take the borders out and still nothing. I am running Drupal 7 on my own system before I put this up on our servers and I cannot get these borders out of my tables. This problems IS NOT FIXED!!!