corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Is there a way? (HTML Tables)


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Is there a way? (HTML Tables)
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Jan 07 at 20:03   View Garage View User's Profile U2U Member Reply With Quote

Of splitting a cell into two cells but not having the cell spacing apply to its adjacent border?

[Edited on 24-01-2007 by Steve]
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
24th Jan 07 at 20:34   View User's Profile U2U Member Reply With Quote

you can set set a style with a pdding property set to 5px for example and apply the style to the td part of the table.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Jan 07 at 20:53   View Garage View User's Profile U2U Member Reply With Quote

give me an example of a table with a few cells with that applied, ta
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
24th Jan 07 at 21:05   View User's Profile U2U Member Reply With Quote

code:


<html>

<body>

<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td width="100px" height="100px">
This is a test
</td>
<td style="padding:15px" width="100px" height="100px">
This is a test
</td>
</tr>
</table>

</body>

</html>


Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Jan 07 at 21:13   View Garage View User's Profile U2U Member Reply With Quote

ah that might just work il try it tomoz ta
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
24th Jan 07 at 21:17   View User's Profile U2U Member Reply With Quote

You can also use padding-left, padding-right, padding-top and padding-bottom if you don't want it all the way round.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Jan 07 at 23:08   View Garage View User's Profile U2U Member Reply With Quote

thanks james the effect i was trying to achieve is the rounded edges to the headings on the tops of the forums as you can see here

http://www.vagweb.co.uk/forums/index.php

without the crappy cell spaces at the edges of the images, works now
waynep
Member

Registered: 20th Apr 02
Location: london
User status: Offline
25th Jan 07 at 00:41   View User's Profile U2U Member Reply With Quote

use css ffs
Dom
Member

Registered: 13th Sep 03
User status: Offline
25th Jan 07 at 01:08   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by waynep
use css ffs


yeaaaaaaaaaaaa....ok

Easiest way for rounded edges is to knock up a quick image, with one side having a rounded edge
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
25th Jan 07 at 09:05   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by waynep
use css ffs


i did use css you plumb

also you cant use css to generate a rounded corner to a table, there is a method of rendering it but the command doest show in IE only in mozilla browsers

my problem wasnt getting the rounded edge it was making the cellspace between the cell containing the rounded edge and the adjacent cell non existant but with the rest of the tables having a cellspace of 1

[Edited on 25-01-2007 by Steve]
Nismo
Member

Registered: 12th Sep 02
User status: Offline
25th Jan 07 at 09:34   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Dom
quote:
Originally posted by waynep
use css ffs


yeaaaaaaaaaaaa....ok

Easiest way for rounded edges is to knock up a quick image, with one side having a rounded edge


Yeah like Dom said quikest way is with a gif.
drax
Member

Registered: 5th Feb 05
Location: Sittingbourne, Kent
User status: Offline
25th Jan 07 at 10:02   View User's Profile U2U Member Reply With Quote

Why bother using inline css tho?

set it in the stylesheet and assign the class to the td's you need to.. then you will be able to use it over a number more table cells using less code..

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
web people advice Bart Geek Day 0 105
10th Apr 06 at 15:17
by Bart
 
Tonights Championship fixtures and Match discussion StuartVRS Sports Day 84 1250
11th Aug 06 at 23:28
by Tom J
 
After Constructice Criticism Bart Geek Day 41 2280
5th Sep 06 at 08:33
by James
 
HTML Help Jodi_the_g Geek Day 2 119
10th Sep 06 at 16:50
by James
 
Need to create HTML for this........ FINISHED PG3 dave17 Geek Day 72 2302
11th Jan 07 at 23:31
by drax
 

Corsa Sport » Message Board » Off Day » Geek Day » Is there a way? (HTML Tables) 28 database queries in 0.0154121 seconds