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.
|
|
|
|
|
![]() |
||
Small php table
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#21
|
||||
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#22
|
||||
|
||||
|
Re: Small php table
Ok, Thanks Rob!
|
|
#23
|
||||
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#24
|
|||
|
|||
|
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. |
|
#25
|
||||
|
||||
|
Re: Small php table
Quote:
Quote:
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. ... |
|
#26
|
||||
|
||||
|
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.
Last edited by Oak; Mar 4th, 2008 at 19:30. |
|
#27
|
||||
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#28
|
||||
|
||||
|
Re: Small php table
Yes, they are the same size and colour.
Thanks again. |
|
#29
|
||||
|
||||
|
Re: Small php table
Quote:
|
|
#30
|
||||
|
||||
|
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. |
|
#31
|
||||
|
||||
|
Re: Small php table
Quote:
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. |
|
#32
|
|||
|
|||
|
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" > |
|
#33
|
||||
|
||||
|
Re: Small php table
Quote:
Last edited by Oak; Mar 7th, 2008 at 09:06. |
![]() |
| Thread Tools | |
|
|
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 |