Small php table

This is a discussion on "Small php table" within the PHP Forum section. This forum, and the thread "Small php table are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #21  
Old Mar 4th, 2008, 13:28
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Small php table

Then something is over-riding this code.

I havent time to go through your full css now, but will take a look later.

Yes, you really should use table headers <thead><th> etc..... read up and use them in your table.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #22  
Old Mar 4th, 2008, 13:43
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Ok, Thanks Rob!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #23  
Old Mar 4th, 2008, 13:51
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Small php table

start by removing references to css files that are not needed (temporarily to troubleshoot) - then you can see which one is over-riding this.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #24  
Old Mar 4th, 2008, 15:15
Junior Member
Join Date: Sep 2007
Location: uk
Age: 32
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Small php table

I have been looking at the code on your site and have noticed that you have a border-collapse in the embedded styles on your index-classes.php page at line 57, this is overriding the code to space out your cells.

If you remove this it will allow your table cells to space out as you want them to. You will need to check that this does not change anything else on your pages though.

Change:
#hoverpage table {border-collapse:collapse; margin:-1px;}

To:
#hoverpage table {margin:-1px;}

Last edited by kerrsmith; Mar 4th, 2008 at 15:19.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #25  
Old Mar 4th, 2008, 19:18
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Quote:
Then something is over-riding this code.
Quote:
I have been looking at the code on your site and have noticed that you have a border-collapse in the embedded styles on your index-classes.php page at line 57, this is overriding the code to space out your cells.
That's done it! case solved.

It doesn't seem to have changed anything on the page, I will have a look through to see why it was there.

Thanks also for tidying up my CSS and the tips on tables.

...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #26  
Old Mar 4th, 2008, 19:27
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Oh yeah, I have 4 tables, it is required that you name them differently, do I repeat the code bellow or is there a clever way of compacting the code? Just a thought.

HTML: Select all
#timetable1 th
{
background: #ccc;
}
#timetable1 td
{
background: #E2E4E7;
text-align: left;
}
#timetable1
{
width:445px }

Last edited by Oak; Mar 4th, 2008 at 19:30.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #27  
Old Mar 4th, 2008, 20:03
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Small php table

are all tables the same colors and size?

If so, change to a class instead of an id.....

Give each table the same class name, then just amend the above css to use classes instead of id's
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #28  
Old Mar 4th, 2008, 20:08
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Yes, they are the same size and colour.

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #29  
Old Mar 4th, 2008, 20:26
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Quote:
Give each table the same class name, then just amend the above css to use classes instead of id's
I have just read a little about when to use id and class but dont see any difference in the way it is written in the css.. sorry but what exactly should I amend in the css?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #30  
Old Mar 5th, 2008, 21:22
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Ok I got it.

class:
.timetable

id:
#timetable

Kerrsmith, Thanks for going through my CSS!

Last edited by Oak; Mar 5th, 2008 at 21:32.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #31  
Old Mar 5th, 2008, 23:37
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Small php table

Quote:
Originally Posted by Rob View Post
Mason, oak is trying to display tabular data. The need for a table in this instance is not only self evident, but highly reccomended -especially when done properly with table headers.
Maybe two years ago. Displaying tabular data without the outdated html table structure is easier to style, loads faster, and is more consistent across browsers.

Once you've duplicated the table functionality in a module, solutions to problems like the one he was having are so easily solved that this thread wouldn't be necessary.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #32  
Old Mar 6th, 2008, 21:23
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Small php table

To update robs responce to defining the cellspacing & padding! you did actuall add a value to the cellspacing code didnt you?? As in:

<table border="0" cellpadding="10" cellspacing="4" >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #33  
Old Mar 7th, 2008, 09:03
Oak's Avatar
Oak Oak is offline
SuperMember

SuperMember
Join Date: Dec 2007
Location: London
Age: 35
Posts: 304
Thanks: 6
Thanked 0 Times in 0 Posts
Re: Small php table

Quote:
To update robs responce to defining the cellspacing & padding! you did actuall add a value to the cellspacing code didnt you?? As in: <table border="0" cellpadding="10" cellspacing="4" >
Yes

HTML: Select all
<table cellpadding="5" cellspacing="2" class="timetable">
My tables are ok now.

Last edited by Oak; Mar 7th, 2008 at 09:06.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
a small bug in IE geyids Web Page Design 8 Jan 20th, 2008 00:49
small css problem yoda Web Page Design 1 Mar 22nd, 2007 17:40
Need small help with pagination ofi PHP Forum 0 Feb 7th, 2007 11:44
Need to align width of Float table with the table below Vertabase Web Page Design 4 Mar 8th, 2006 21:21


All times are GMT. The time now is 16:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42