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 |
|
|||
|
Small php table
Last edited by Oak; Mar 2nd, 2008 at 17:56. |
|
|
|
|||
|
Re: Small php table
Should I have posted this in php section?
|
|
|||
|
Re: Small php table
Yes.
Moved to PHP Forum.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
|
|
|||
|
Re: Small php table
Any ideas?
|
|
|||
|
Re: Small php table
Top image is FF
Bottom is IE7 |
|
|||
|
Re: Small php table
I have seen this a few times before and have fixed it by adding cellspacing to the table tag in the HTML code and border-spacing to the CSS code as shown below:
<table class="indexpage" cellspacing="5px"> .indexpage { border-spacing: 5px; } Doing this seems to make it work on all browsers. |
|
|||
|
Re: Small php table
before
Last edited by Oak; Mar 3rd, 2008 at 14:11. |
|
|||
|
Re: Small php table
You now have an id and a class in your HTML table tag, you need to have one or the other. Try removing class="indexpage" from the table tag and adding border-spacing: 5px; to the timetable1 class in your CSS code.
Last edited by kerrsmith; Mar 3rd, 2008 at 15:47. |
|
||||
|
Re: Small php table
1 element with an id and class is perfectly acceptable.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: Small php table
Yes, although you can use both id and class within an single element in this particular case it is not really necessary - it makes sense just to add the required code to the id already created in the CSS code - if only to keep the code neat and tidy.
|
|
|||
|
Re: Small php table
Quote:
|
|
|||
|
Re: Small php table
You need to apply border-spacing to the whole table not just the th and td tags. Try adding the following to your CSS code:
#timetable1 { border-spacing: 5px; } |
|
|||
|
Re: Small php table
Nope, still no good.
|
|
||||
|
Re: Small php table
ok, back to basics here:-
Define you table as such:-
If you need padding in cells and spacing between them, then define it in the CSS.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Small php table
Rob, This still did not create any spacing.
{ background: #ccc; padding: 5px; text-align: left; border-spacing: 5px; cell-spacing: 2px; width:445px } #timetable1 td { border-spacing: 5px; background: #E2E4E7; padding: 5px; text-align: left; cell-spacing: 2px; width:445px } #timetable1 { border-spacing: 5px; cell-spacing: 2px; width:445px } |
|
||||
|
Re: Small php table
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.
Oak, are you saying you actually want spacing between cells?
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: Small php table
You were using WAY to much code....
Try:---
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Small php table
Quote:
Quote:
Quote:
|
![]() |
| 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 |