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 "&nbsp;&nbsp;&nbsp;&nbsp;", ("<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'];
		}
?>
CommentFileSizeAuthor
danland.png62.14 KBtitusbass
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danpros’s picture

Hi,

The css for table border is

tr td, tr th {
border:1px solid #bbb;
padding: 0 6px;
}

You can set it to border:none;

Dan

titusbass’s picture

Status: Active » Closed (fixed)

Hi Dan,

Thanks. Worked great. That was so simple, I'm almost embarrassed. Sorry I couldn't find it in the first place.

TTelenko’s picture

I 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!!!