Jump to content

Table specific css within a div


Guest whitehat

Recommended Posts

Guest whitehat

Hello @all ...

 

I searched the net to find solution but finaly came up by registering her and simply ask.

 

I have the folowing php code:

<?php

/************************************************************************************/
/*                                                                                  */
/* FORUM CENTER BLOCK:                                                              */
/* For PHP-Nuke 7.x with forum phpBB 3                                              */
/* v1.0  07-06-2008                                                                 */
/*                                                                                  */
/* http://www.ithemes.eu                                                            */
/*                                                                                  */
/* This program is free software. You can redistribute it and/or modify             */
/* it under the terms of the GNU General Public License as published by             */
/* the Free Software Foundation; either version 2 of the License.                   */
/*                                                                                  */
/************************************************************************************/

if (eregi("block-block-Center_Block_phpBB3.php",$PHP_SELF)) {
   Header("Location: index.php");
   die();
}

global $prefix, $user_prefix, $db, $language, $sitename;

@include("language/bcf/lang-$language.php");

/**********************************/
/*                                */
/* Configuration parameters       */
/*                                */
/**********************************/
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 1;
// Show only 5 last new topics
$Last_New_Topics  = 5;                            

/**********************************/
/*                                */
/* Don't Edit Below !             */
/*                                */
/**********************************/
$border           = 1;
$cellspacing      = 0;
$content = "";
$content .= "";
$content .= "$uname ";

     $result4 = $db->sql_query( "SELECT username, user_id FROM ".$table_prefix."phpbb_users where user_id='$topic_poster'" );
     list( $uname, $uid ) = $db->sql_fetchrow( $result4 );
     $OrigPoster = " $uname ";






  }
  $content .= "        ";

$content .= "";
$content .= "$topic_title";
$content .= "$OrigPoster";
$content .= "$topic_views";
$content .= "$topic_replies";
$content .= "$LastPoster
$post_time";
$content .= "        ";
  if( $Last_New_Topics == $Count_Topics ) { break 1; }



/* Write Table to Screen */




}

$content .= "";

$content .= "";
$content .= "";


?>

 

The css used can be find here:

 

#forumblock table {
   border-collapse: collapse;
   width: 50%;
   margin: 24px;
   font-size: 1.1em;
}

#forumblock  th {
   background: #3e83c9;
   color: #fff;
   font-weight: bold;
   padding: 2px 11px;
   text-align: left;
   border-right: 1px solid #fff;
   line-height: 1.2;
}

#forumblock td {
   padding: 6px 11px;
   border-bottom: 1px solid #95bce2;
   vertical-align: top;
}

#forumblock td * {
   padding: 6px 11px;
}

#forumblock tr.alt td {
   background: #ecf6fc;
}

#forumblock tr.over td, tr:hover td {
   background: #bcd4ec;
}

 

Here's the url http://www.soebiesplace.com

 

I try to get the css correct for the forum block inside this page so it doesnt effect the rest of the page.. as it already doing now with the hover effect.

 

also the colors etc for the th dont show

Edited by whitehat
Link to comment
Share on other sites

You show styles like

#forumblock th {

background: #3e83c9;

color: #fff;

font-weight: bold;

padding: 2px 11px;

text-align: left;

border-right: 1px solid #fff;

line-height: 1.2;

}

 

in your post. Which stylesheet are those table styles in? I can't find the stylesheet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...