Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Can't get table to center....
Old 10-03-2009, 10:30 AM Can't get table to center....
Novice Talker

Posts: 5
Name: Lisa T
Trades: 0
Hi, I'm working on a WordPress theme and customizing it a bit and I'm trying to get a table to center within the header... and it won't. I've tried everything and probably too much!

You'll see there's actually a table within a table because there's a background image I want displayed at 100% and then the table inside should be centered and only 960px.

Here's the code as it is now...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="distribution" content="global" />
<meta name="language" content="en" />
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagNam e("li");
// if you only have one main menu - delete the line below //
var sfEls1 = document.getElementById("subnav").getElementsByTag Name("li");
//
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
// if you only have one main menu - delete the "for" loop below //
for (var i=0; i<sfEls1.length; i++) {
sfEls1[i].onmouseover=function() {
this.className+=" sfhover1";
}
sfEls1[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
}
}
//
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<div id="wrap">
<div id="header">
<table class="main.header" cellpadding="0" cellspacing="0" style="background-image:url('images/bg.png')"style="width: 100%; height: 170px">
<tr>
<td valign="top" align="center">
<table align="center" width="960px" cellpadding="0" cellspacing="0" style="height: 130px; background-image:url(images/header.png')">
<tr>
<td style="height: 100px"><div class="headerleft">
<?php $chrome_header = get_option('chrome_header'); ?>
<?php if($chrome_header == 'Text'): ?>
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p><?php bloginfo('description'); ?></p>
<?php else : ?>
<?php endif; ?>
</div>

<div class="headerright">

<p><a href="<?php bloginfo('rss_url'); ?>">Subscribe to News</a><br /><a href="<?php bloginfo('comments_rss2_url'); ?>">Subscribe to Comments</a></p>
<form id="searchformheader" method="get" action="<?php echo get_option('home') ?>/">
<input type="text" value="Search this website..." name="s" id="searchbox" onfocus="if (this.value == 'Search this website...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this website...';}" />
<input type="submit" id="searchbutton" value="GO" /></form>

</div></td>
</tr>
<tr>
<td align="center" style="height: 30px"><div id="navbar">
<ul id="nav">
<li><a href="<?php echo get_option('home'); ?>">Home</a></li>
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order'); ?>
</ul>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div style="clear:both;"></div>
<div id="subnavbar">
<ul id="subnav">
<?php wp_list_categories('orderby=name&title_li=&depth=4 '); ?>
</ul>

</div>
<div style="clear:both;"></div>
CanUHelp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-03-2009, 01:46 PM Re: Can't get table to center....
Average Talker

Posts: 24
Location: Germany
Trades: 0
Hi Lisa,

maybe this piece of code is causing some trouble:
PHP Code:
<table class="main.header" cellpadding="0" cellspacing="0" style="background-image:url('images/bg.png')"style="width: 100%; height: 170px"
You shouldn't use "style=" twice for one element. Better change it to:
PHP Code:
<table class="main.header" cellpadding="0" cellspacing="0" style="background-image:url('images/bg.png'); width: 100%; height: 170px"
But that's probably not the only cause of the problem. It's hard to tell by the piece of code you posted. You're linking to separate css files, maybe they include some styles for <table> tags. (And I can't run the code on my local server to test it because of the php functions.)
__________________

Please login or register to view this content. Registration is FREE
- Register Now and Share Your Thoughts to Create Innovation and Wisdom


Please login or register to view this content. Registration is FREE
- Psychology, Philosophy and Self Development


Please login or register to view this content. Registration is FREE
- Read About All Those Things That Bug Me
Trey Walter is offline
Reply With Quote
View Public Profile Visit Trey Walter's homepage!
 
Old 10-05-2009, 04:46 AM Re: Can't get table to center....
Average Talker

Posts: 21
Name: Luis Posselt
Trades: 0
Do you have a link to your website? Did you buy a template or code(create) the website? It is always helpful to have the whole design so anyone can go inside the code and solve the problem. I mean if you create the website, just sometimes takes time to figure out small problems.
__________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
– Benjamin Franklin

Please login or register to view this content. Registration is FREE
| FREE
Please login or register to view this content. Registration is FREE
luis23045 is offline
Reply With Quote
View Public Profile
 
Old 10-05-2009, 11:06 PM Re: Can't get table to center....
Novice Talker

Posts: 6
Name: Pavel
Trades: 0
Don't use style="" twice. Test your code in DW and you wouldn't have such problems.
cyberq is offline
Reply With Quote
View Public Profile
 
Old 10-09-2009, 02:09 PM Re: Can't get table to center....
Novice Talker

Posts: 5
Name: Lisa T
Trades: 0
Hi guys,

Sorry for the delayed response... I removed the second style but that didn't work. Here's my css:

/*
HTML Code:
Theme Name: Chrome WordPress Theme
Theme URL: [URL]http://www.studiopress.com/themes/chrome[/URL]
Description: Chrome is a 2-column Widget-ready theme created for WordPress.
Author: StudioPress
Author URI: [URL]http://www.studiopress.com[/URL]
Version: 2.0
Tags: two columns, fixed width, black, white, gray, blue, sidebar widgets
 
The CSS, XHTML and design is released under GPL:
[URL]http://www.opensource.org/licenses/gpl-license.php[/URL]
 
Changelog:
v2.0 - 1/24/09
Second Release of Chrome, to ensure compatibility with WordPress 2.7
*/
body {
background: #FFFFFF;
color: #222222;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px auto 0px;
padding: 0px;
}
 
#wrap {
background: #FFFFFF url(images/bg.png) repeat-x;
color: #222222;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px auto 0px;
padding: 0px;
} 
/************************************************
* Hyperlinks *
************************************************/
 
a img {
border: none;
}
 
a:focus, a:hover, a:active {
outline: none 
}
 
/************************************************
* Header *
************************************************/
#header {
background: #FFFFFF url(images/header.png);
width: 960px;
height: 130px;
margin: 0px 0px 0px;
padding: 0px;
overflow: hidden;
text-align: center;
}
#header h1 {
color: #333333;
font-size: 36px;
font-family: Times New Roman, Georgia, Trebuchet MS;
font-weight: normal;
margin: 0px;
padding: 20px 0px 0px 0px;
text-decoration: none;
}
 
#header h1 a, #header h1 a:visited {
color: #333333;
font-size: 36px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px;
padding: 0px;
text-decoration: none;
}
 
#header h1 a:hover {
color: #333333;
text-decoration: none;
}
.headerleft {
width: 450px;
float: left;
margin: 0px;
padding: 0px;
overflow: hidden;
}
.headerleft p {
color: #333333;
font-size: 14px;
margin: 0px;
padding: 0px;
line-height: 20px;
}
 
.headerright {
width: 500px;
float: right;
margin: 0px;
padding: 25px 0px 0px 0px;
text-align: right;
}
 
.headerright p {
margin: 0px;
padding: 0px 50px 0px 0px;
}
 
.headerright a, .headerright a:visited {
color: #000000;
text-decoration: none;
}
 
.headerright a:hover {
color: #666666;
text-decoration: underline;
}
 
/************************************************
* Navbar *
************************************************/
#navbar {
width: 960px;
text-align:left;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
color: #FFFFFF;
font-weight: bold;
margin: 0px auto 0px;
padding: 0px;
}
 
#nav {
margin: 0px;
padding: 0px;
}
 
#nav ul {
float: left;
list-style: none;
margin: 0px;
padding: 0px;
}
 
#nav li {
float: left;
list-style: none;
margin: 0px;
padding: 0px;
}
 
#nav li a, #nav li a:link {
background: #CCCCCC;
color: #333333;
display: block;
font-weight: normal;
margin: 0px 10px 0px 0px;
padding: 8px 15px 8px 15px;
text-decoration: none;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-khtml-border-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
#nav li a:hover, #nav li a:active {
background: #FFFFFF;
color: #666666;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-khtml-border-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
 
#nav li li a, #nav li li a:link, #nav li li a:visited {
background: #FFFFFF;
width: 170px;
color: #666666;
float: none;
margin: 0px;
padding: 7px 10px 7px 10px;
border-bottom: 1px solid #CCCCCC;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
-moz-border-radius-topleft: 0px;
-moz-border-radius-topright: 0px;
-khtml-border-radius: 0px;
-webkit-border-top-left-radius: 0px;
-webkit-border-top-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
 
#nav li li a:hover, #nav li li a:active {
background: #999999;
color: #FFFFFF;
padding: 7px 10px 7px 10px;
}
#nav li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 190px;
margin: 0px;
padding: 0px;
}
#nav li li { 
}
#nav li ul a { 
width: 160px;
}
#nav li ul a:hover, #nav li ul a:active { 
}
#nav li ul ul {
margin: -30px 0 0 191px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
left: auto;
}
#nav li:hover, #nav li.sfhover { 
position: static;
}
 
#nav .current_page_item a {
background: #FFFFFF;
color: #666666;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-khtml-border-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
 
/************************************************
* SubNavbar *
************************************************/
#subnavbar {
width: 960px;
height: 35px;
color: #FFFFFF;
margin: 1px auto 0px;
padding: 0px;
}
 
#subnav {
margin: 0px;
padding: 0px;
}
 
#subnav ul {
float: left;
list-style: none;
margin: 0px;
padding: 0px;
}
 
#subnav li {
float: left;
list-style: none;
margin: 0px;
padding: 0px;
}
 
#subnav li a, #subnav li a:link, #subnav li a:visited {
background: url(images/subnav.png) no-repeat left top;
color: #666666;
display: block;
margin: 0px;
padding: 9px 15px 9px 15px;
text-decoration: none;
}
#subnav li a:hover, #subnav li a:active {
color: #000000;
display: block;
margin: 0px;
padding: 9px 15px 9px 15px;
}
 
#subnav li li a, #subnav li li a:link, #subnav li li a:visited {
background: #FFFFFF;
width: 170px;
color: #666666;
float: none;
margin: 0px;
padding: 7px 10px 7px 10px;
border-bottom: 1px solid #CCCCCC;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
-moz-border-radius-topleft: 0px;
-moz-border-radius-topright: 0px;
-khtml-border-radius: 0px;
-webkit-border-top-left-radius: 0px;
-webkit-border-top-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
 
#subnav li li a:hover, #subnav li li a:active {
background: #999999;
color: #FFFFFF;
padding: 7px 10px 7px 10px; 
}
 
#subnav li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 160px;
margin: 0px;
padding: 0px;
}
#subnav li li { 
}
#subnav li ul a { 
width: 160px;
}
#subnav li ul a:hover, #subnav li ul a:active { 
}
#subnav li ul ul {
margin: -30px 0 0 191px;
}
#subnav li:hover ul ul, #subnav li:hover ul ul ul, #subnav li.sfhover1 ul ul, #subnav li.sfhover1 ul ul ul {
left: -999em;
}
#subnav li:hover ul, #subnav li li:hover ul, #subnav li li li:hover ul, #subnav li.sfhover1 ul, #subnav li li.sfhover1 ul, #subnav li li li.sfhover1 ul {
left: auto;
}
#subnav li:hover, #subnav li.sfhover { 
position: static;
}
/************************************************
* Homepage * 
************************************************/
#homepage {
float: left;
width: 690px;
margin: 0px 0px 15px 0px;
padding: 20px 19px 0px 0px;
border-right: 1px solid #DDDDDD;
border-top: 1px solid #DDDDDD;
}
 
#homepage a, #homepage a:visited {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #3A87DD;
}
 
#homepage a:hover {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #FFFFFF;
}
 
#homepage p {
margin: 0px;
padding: 0px;
}
 
#homepage h1 {
color: #222222;
font-size: 16px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px 0px 5px 0px;
padding: 0px;
line-height: 24px;
}
 
#homepage h1 a {
color: #222222;
text-decoration: none;
border: none;
}
#homepage h1 a:hover {
color: #666666;
text-decoration: none;
border: none;
}
 
#homepage h2 {
color: #FFFFFF;
font-size: 16px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px;
padding: 5px 0px 0px 10px;
}
 
#homepage h3 {
background: #F5F5F5;
color: #222222;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
font-weight: bold;
text-transform: uppercase;
margin: 0px 0px 5px 0px;
padding: 3px 0px 3px 10px;
border-top: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
}
#homepage h4 {
color: #222222;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
font-weight: bold;
text-transform: uppercase;
margin: 10px 0px 5px 0px;
padding: 0px;
}
#homepage embed, #homepage object {
width: 250px; 
height: 205px;
margin: 10px 0px 5px 0px; 
padding: 0px;
}
 
#homepage ul {
list-style-type: none;
margin: 0px 0px 0px 5px;
padding: 0px 0px 15px 0px;
}
 
#homepage ul li {
background: url(images/arrow.gif) no-repeat left;
padding: 0px 0px 0px 15px;
margin: 0px 0px 5px 0px;
}
 
.homepageleft {
float: left;
width: 396px;
margin: 0px;
padding: 0px 0px 10px 0px;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
}
.homepageright {
float: right;
width: 270px;
margin: 0px;
padding: 0px;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
}
 
.homebox {
margin: 0px;
padding: 5px 10px 0px 10px;
}
 
 
#fcg {
background: #F5F5F5;
margin: 0px 0px 20px 0px;
padding: 10px;
}
 
#fcg p {
color: #FFFFFF;
margin: 0px;
padding: 0px 10px 0px 10px;
font-size: 12px;
}
/************************************************
* Content * 
************************************************/
#content {
width: 960px;
margin: 0px auto 0px;
padding: 20px 0px 0px 0px;
line-height: 20px;
}
 
#contentleft {
float: left;
width: 690px;
margin: 0px 0px 15px 0px;
padding: 20px 19px 20px 0px;
border-right: 1px solid #DDDDDD;
border-top: 1px solid #DDDDDD;
}
#contentwide {
float: left;
width: 960px;
margin: 0px;
padding: 20px 0px 20px 0px;
border-top: 1px solid #DDDDDD;
}
 
#contentwide a, #contentwide a:visited {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #3A87DD;
}
 
#contentwide a:hover {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #FFFFFF;
}
#contentleft h1, #contentwide h1 {
color: #222222;
font-size: 22px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px 0px 5px 0px;
padding: 0px;
line-height: 24px;
}
 
#contentleft h1 a, #contentwide h1 a {
color: #222222;
text-decoration: none;
border: none;
}
#contentleft h1 a:hover, #contentwide h1 a:hover {
color: #666666;
text-decoration: none;
border: none;
}
 
#contentleft h2, #contentwide h2 {
color: #222222;
font-size: 16px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 10px 0px 5px 0px;
padding: 0px 0px 5px 0px;
border-bottom: 1px dotted #C0C0C0;
}
 
#contentleft h3, #contentwide h3 {
color: #222222;
font-size: 22px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px 0px 5px 0px;
padding: 0px;
}
 
#contentleft h4, #contentwide h4 {
color: #222222;
font-size: 22px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
margin: 0px 0px 20px 0px;
padding: 0px;
}
 
#contentleft img.wp-smiley {
float: none;
border: none;
padding: 0px;
margin: 0px;
}
#contentleft img.wp-wink {
float: none;
border: none;
padding: 0px;
margin: 0px;
}
.postarea p {
padding: 0px 0px 10px 0px;
margin: 0px;
}
 
.postarea a, .postarea a:visited, .postcomments a, .postcomments a:visited {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #3A87DD;
}
 
.postarea a:hover, .postcomments a:hover {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #FFFFFF;
}
 
.postarea ol {
margin: 0px 0px 0px 20px;
padding: 0px 0px 10px 0px;
}
 
.postarea ol li {
margin: 0px 0px 0px 20px;
padding: 0px 0px 5px 0px;
}
 
.postarea ul {
list-style-type: none;
margin: 0px 0px 0px 5px;
padding: 0px 0px 10px 0px;
}
 
.postarea ul ul {
list-style-type: none;
margin: 0px;
padding: 0px 0px 0px 0px;
}
 
.postarea ul li {
background: url(images/arrow2.gif) no-repeat top left;
padding: 0px 0px 0px 15px;
margin: 0px 0px 5px 0px;
}
 
.postarea ul ul li {
background: url(images/arrow2.gif) no-repeat top left;
padding: 0px 0px 0px 15px;
margin: 0px 0px 5px 0px;
}
 
blockquote {
font-style: italic;
margin: 0px 25px 15px 25px;
padding: 0px 25px 0px 10px;
border-left: 2px solid #C0C0C0;
}
 
#content blockquote p {
margin: 0px;
padding: 10px 0px 10px 0px;
}
 
.postauthor {
margin: 0px 0px 10px 0px;
padding: 0px;
}
 
.postmeta {
background: #F5F5F5;
font-size: 11px;
text-transform: uppercase;
margin: 0px 0px 50px 0px;
padding: 5px 10px 5px 10px;
border: 1px dotted #BBBBBB;
}
.postmeta p {
margin: 0px;
padding: 0px;
}
 
code {
color: #222222;
background: #EAEAEA;
font-size: 11px;
margin: 0px;
padding: 10px;
display: block;
font-family: Verdana, Tahoma, Verdana;
}
 
.archive {
float: left;
width: 320px;
margin: 0px;
padding: 0px 25px 20px 0px;
}
/************************************************
* Images * 
************************************************/
img.centered {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
padding: 0px;
}
 
img.alignnone {
padding: 0px;
margin: 0px 0px 10px 0px;
display: inline;
}
img.alignright {
padding: 0px;
margin: 0px 0px 10px 10px;
display: inline;
}
img.alignleft {
padding: 0px;
margin: 0px 10px 10px 0px;
display: inline;
}
 
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
}
.alignright {
float: right;
margin: 0px 0px 10px 10px;
}
.alignleft {
float: left;
margin: 0px 10px 10px 0px;
}
 
.wp-caption {
border: 1px solid #DDDDDD;
text-align: center;
background-color: #F5F5F5;
padding: 4px 0px 5px 0px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img {
margin: 0px 0px 5px 0px;
padding: 0px;
border: 0px;
}
.wp-caption p.wp-caption-text {
margin: 0px;
padding: 0px 0px 0px 0px;
font-size: 11px;
font-weight: normal;
line-height: 12px;
}
 
/************************************************
* Sidebar * 
************************************************/
 
#sidebar {
float: right;
width: 250px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 20px 0px;
line-height: 18px;
}
 
#sidebar a, #sidebar a:visited {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #3A87DD;
}
 
#sidebar a:hover {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #FFFFFF;
}
 
#sidebar h2 {
background: #F5F5F5;
color: #222222;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
font-weight: bold;
text-transform: uppercase;
margin: 0px 0px 5px 0px;
padding: 3px 0px 3px 10px;
border-top: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
}
 
#sidebar h3 {
color: #222222;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
font-weight: bold;
text-transform: uppercase;
margin: 20px 0px 5px 0px;
padding: 3px 0px 3px 10px;
border-top: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
}
#sidebar p {
margin: 0px;
padding: 0px 0px 0px 10px;
line-height: 20px;
}
 
#sidebar .widget {
background: #FFFFFF;
margin: 0px 0px 10px 0px;
padding: 0px;
}
 
#sidebar ul {
list-style-type: none;
margin: 0px;
padding: 0px;
}
 
#sidebar ul li {
list-style-type: none;
margin: 0px 0px 5px 0px;
padding: 0px;
}
 
#sidebar ul ul li a, #sidebar ul ul li a:visited {
color: #222222;
text-decoration: none;
border-bottom: 1px solid #FFFFFF;
}
 
#sidebar ul ul li a:hover {
color: #3A87DD;
text-decoration: none;
border-bottom: 1px dotted #3A87DD;
}
#sidebar ul ul {
list-style-type: none;
margin: 0px 0px 0px 10px;
padding: 0px;
}
 
#sidebar ul ul ul {
list-style-type: none;
margin: 0px 0px 0px 0px;
padding: 0px;
}
 
#sidebar ul li li {
background: url(images/arrow2.gif) no-repeat top left;
padding: 0px 0px 0px 15px;
margin: 0px 0px 5px 0px;
}
 
#sidebar ul li ul li {
background: url(images/arrow2.gif) no-repeat top left;
padding: 0px 0px 0px 15px;
margin: 0px 0px 5px 0px;
}
 
.textwidget {
margin: 0px;
padding: 0px 0px 0px 10px;
}
 
.widget_tag_cloud {
margin: 0px;
padding: 0px 0px 0px 10px;
}
 
/************************************************
* Footer Background *
************************************************/
#footerbg {
background: #FFFFFF url(images/footer.png) repeat-x;
}
 
/************************************************
* Footer *
************************************************/
#footer {
width: 960px;
height: 80px;
color: #FFFFFF;
margin: 0px auto 0px;
padding: 0px;
}
 
#footer p {
margin: 0px; 
padding: 0px;
}
.footertop {
font-size: 12px;
color: #222222;
font-weight: normal;
margin: 0px;
padding: 18px 0px 0px 0px;
}
 
.footertop a {
color: #222222;
text-decoration: none;
}
.footertop a:hover {
color: #666666;
text-decoration: underline;
}
 
.footerbottom {
font-size: 11px;
color: #666666;
font-weight: normal;
margin: 0px;
padding: 12px 0px 0px 0px;
}
 
.footerbottom a {
color: #666666;
text-decoration: none;
}
.footerbottom a:hover {
color: #000000;
text-decoration: underline;
}
 
/************************************************
* Search Form *
************************************************/
.postform {
background: #F5F5F5;
width: 240px;
color: #222222;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 5px 0px 0px 0px;
padding: 1px;
display: inline;
border: 1px solid #DDDDDD;
}
 
#cat {
background: #FFFFFF;
color: #222222;
margin: 5px 0px 0px 10px;
}
#subscribe {
margin: 0px;
padding: 10px 0px 5px 0px;
overflow: hidden;
}
#subbox {
background: #F5F5F5 !important;
width: 185px;
color: #222222;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
font-weight: normal;
margin: 0px;
padding: 5px 0px 5px 5px;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
display: inline;
border: 1px solid #DDDDDD;
}
 
#subbutton {
background: #333333 url(images/homelink.png);
color: #FFFFFF;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
-webkit-border-radius: 5px;
font-size: 12px;
text-transform: uppercase;
text-decoration: none;
margin: 0px 0px 0px 5px;
padding: 3px 5px 4px 5px;
border: 1px solid #333333;
}
#searchform {
margin: 5px 0px 0px 10px;
}
 
#searchformheader {
margin: 15px 0px 0px 0px;
}
 
#searchbox {
background: #F5F5F5 !important;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
width: 210px;
color: #222222;
font-family: Arial, Tahoma, Verdana;
padding: 4px;
margin: 0px 3px 0px 0px;
border: 1px solid #F5F5F5;
}
 
#searchbutton {
background: #555555;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
color: #FFFFFF;
font-family: Arial, Tahoma, Verdana;
padding: 3px;
margin: 0px;
border: 1px solid #555555;
}
 
#s {
background: #F5F5F5;
width: 170px;
color: #222222;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 5px 3px 0px 0px;
padding: 3px 0px 3px 3px;
display: inline;
border: 1px solid #DDDDDD;
}
 
#searchsubmit {
background: #DDDDDD;
color: #222222;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
font-family: Trebuchet MS, Arial, Tahoma;
font-size: 11px;
font-weight: bold;
text-decoration: none;
margin: 0px;
padding: 1px 2px 1px 2px;
border: 1px solid #AAAAAA;
display: inline;
}
 
#submit {
background: #DDDDDD;
color: #222222;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
font-family: Trebuchet MS, Arial, Tahoma;
font-size: 11px;
font-weight: bold;
text-decoration: none;
margin: 0px;
padding: 2px 5px 2px 5px;
border: 1px solid #AAAAAA;
}
 
#author, #email, #url {
background: #EAEAEA !important;
color: #222222;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 0px;
padding: 4px;
border: 1px solid #AAAAAA;
}
 
#comment {
background: #EAEAEA !important;
color: #222222;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
margin: 5px 0px 5px 0px;
padding: 4px;
border: 1px solid #AAAAAA;
}
 
/************************************************
* Comments *
************************************************/
 
.commentlist li ul li {
font-size: 12px;
}
.commentlist li {
font-weight: bold;
}
.commentlist li .avatar { 
background: #FFFFFF;
float: right;
border: 1px solid #EEEEEE;
padding: 2px;
}
.commentlist cite, .commentlist cite a {
font-weight: bold;
font-style: normal;
font-size: 12px;
}
.commentlist p {
font-weight: normal;
text-transform: none;
}
.commentmetadata {
font-weight: normal;
}
#commentform input {
width: 170px;
padding: 2px;
margin: 5px 5px 1px 0px;
}
#commentform {
margin: 5px 10px 0px 0px;
}
 
#commentform textarea {
width: 98%;
padding: 2px;
}
 
#respond:after {
content: "."; 
display: block; 
height: 0px; 
clear: both; 
visibility: hidden;
}
 
#commentform p {
margin: 5px 0px 5px 0px;
}
 
#commentform #submit {
margin: 0px;
float: left;
}
 
.alt {
margin: 0px;
padding: 10px;
}
.commentlist {
margin: 0px;
padding: 0px;
}
 
.commentlist ol {
margin: 0px;
padding: 10px;
}
.commentlist li {
margin: 15px 0px 10px;
padding: 10px 5px 10px 10px;
list-style: none;
}
.commentlist li ul li { 
margin-right: -5px;
margin-left: 10px;
}
.commentlist p {
margin: 10px 0px 10px 0px;
padding: 0px;
}
 
.children { 
margin: 0px;
padding: 0px;
}
.nocomments {
text-align: center;
margin: 0px;
padding: 0px;
}
 
.reply a, .reply a:visited {
background: #DDDDDD;
color: #222222;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
font-family: Trebuchet MS, Arial, Tahoma;
font-size: 11px;
text-decoration: none;
margin: 0px;
padding: 2px 5px 2px 5px;
border: 1px solid #AAAAAA;
}
 
.reply a:hover {
background: #3A87DD;
color: #FFFFFF;
text-decoration: none;
border: 1px solid #3A87DD;
}
.commentmetadata {
font-size: 10px;
margin: 0px;
display: block;
}
.navigation {
display: block;
text-align: center;
margin-top: 10px;
margin-bottom: 60px;
}
 
.alignright {
float: right;
}
.alignleft {
float: left;
}
 
.thread-alt {
background: #FFFFFF;
margin: 0px;
padding: 0px;
}
 
.thread-even {
background: #F5F5F5;
margin: 0px;
padding: 0px;
}
 
.depth-1 {
border: 1px dotted #BBBBBB;
margin: 0px;
padding: 0px;
}
.even, .alt {
border-top: 1px dotted #BBBBBB;
border-bottom: 1px dotted #BBBBBB;
border-left: 1px dotted #BBBBBB;
margin: 0px;
padding: 0px;
}
It's a WordPress theme that we bought but are customizing. Here's the link: http://www.pointmanprojectleadership.com/

Last edited by chrishirst; 10-10-2009 at 12:36 PM..
CanUHelp is offline
Reply With Quote
View Public Profile
 
Old 10-10-2009, 11:36 AM Re: Can't get table to center....
luu
Experienced Talker

Posts: 40
Trades: 0
how about use css style float:center for your table?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
| Agozo -
Please login or register to view this content. Registration is FREE
luu is offline
Reply With Quote
View Public Profile
 
Old 10-10-2009, 12:57 PM Re: Can't get table to center....
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
how about use css style float:center for your table?
There is NO SUCH THING as float:center!!!!

I would say eliminate the tables completely, but I'm not up to speed on WP at the moment, still, most of WP can be done w/o tables for layout.


Change the margin: 0; on #header to margin: 0 auto; and the whole header will center.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 10-10-2009 at 01:05 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-11-2009, 10:10 AM Re: Can't get table to center....
TripleMoons's Avatar
Webmaster Talker

Posts: 614
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
All of the layout for WordPress can be done without tables. I use a stripped down version of WordPress on my design business site and none of it uses tables.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 10-11-2009, 01:15 PM Re: Can't get table to center....
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I figured as much . I've seen few WP themes done in tables.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-11-2009, 05:29 PM Re: Can't get table to center....
Novice Talker

Posts: 5
Name: Lisa T
Trades: 0
Yes, I agree. I don't typically use tables in WP themes; however, in this particular instance, we're trying to get the navigation to lay on top of the header image and that was the only way I could think of to do it. Am certainly open to suggestions on a better way!
CanUHelp is offline
Reply With Quote
View Public Profile
 
Old 10-11-2009, 11:56 PM Re: Can't get table to center....
Novice Talker

Posts: 5
Name: Lisa T
Trades: 0
LadynRed-
THANK YOU! That worked perfectly!
CanUHelp is offline
Reply With Quote
View Public Profile
 
Old 10-12-2009, 03:31 PM Re: Can't get table to center....
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're welcome

Quote:
we're trying to get the navigation to lay on top of the header image
Soo.. why not put the header image in as a BACKGROUND on the header and that leaves the div open to put things INSIDE it and it will appear as if 'stacked'.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-12-2009, 04:15 PM Re: Can't get table to center....
Novice Talker

Posts: 5
Name: Lisa T
Trades: 0
The way this particular theme was set up, it didn't work that way. There is actually a background image as well as a header! but I've got it working now. Thank you for your help.
CanUHelp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can't get table to center....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43001 seconds with 12 queries