473,327 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

<table>: how to set cellpadding, spacing and alignment?

Hello,

I need a style that defines
-table cellspacing
-table cellpading
-alignment

I tried
<table class="TBLpageframe">
<tr class="TRpageframe">
<td class="TDpageframe">sample tekst</td>
</tr>
<tr class="TRpageframe">
<td class="TDpageframe">sample tekst</td>
</tr>
</table>

with style definition
..TDpageframe {
width : 80%;
height : 80%;
BORDER-RIGHT: #000000 5px solid;
BORDER-TOP: #000000 5px solid;
BORDER-LEFT: #000000 5px solid;
BORDER-BOTTOM: #000000 5px solid;
BACKGROUND: #f1cb2c;
padding-bottom : 20;
padding-left : 100;
padding-right : 20;
padding-top : 20;
margin-bottom : 20;
margin-left : 100;
margin-right : 20;
margin-top : 50;
}

but padding and margins do not seem to work.
can anybody give me the correct syntax/fields?

tia
bartp
--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee

Jul 20 '05 #1
2 7923
Bart Plessers (artabel) wrote on 08 okt 2003 in
comp.infosystems.www.authoring.stylesheets:
but padding and margins do not seem to work.


Dag Bart,

A TD can have css padding, but I cannot imagine td margins:

Testing:

====================

<style>
table, td {border:dotted green 1px;}
.t1 td {padding:20px;}
.t2 td {margin:20px;}
</style>
<table class="t1">
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
</table>

<table class="t2">
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
<tr><td>qqq</td><td>qqq</td><td>qqq</td></tr>
</table>

========================

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
Bart Plessers (artabel) wrote:
Hello,

I need a style that defines
-table cellspacing
http://www.w3.org/TR/CSS2/tables.html#borders
-table cellpading
padding (but remember that its CELLpadding and not TABLEpadding)
-alignment


The usual rules apply depending on if the element is a block or inline.
http://dorward.me.uk/www/centre/ might be useful.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philo | last post by:
How do I select all <div> tags except those which contain a <table> tag somewhere within them? Example XML: <********************** sample input ***********************> <txtSectionBody>...
8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
2
by: bjam | last post by:
Hi, I am trying to do the following, which is to have a single place to define my table paramaters such as cellpadding / cellspacing etc. Below is the code I am trying to achieve see the cell...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
19
by: CMAR | last post by:
I have the following markup. The problem is that the browser, e.g., IE6, inserts several lines of blank space between the <div> and the following table. Is there a way to minimize that vertical...
7
by: jmm-list-gn | last post by:
Hello, What is the CSS equivalent of <table cellspacing="12" cellpadding="15">? -- jmm dash list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email)
4
by: Matthias Hullin | last post by:
Hi! On http://festest.hullin.net/index2.php?was=nurstruktur&ausklapp=,2, (make sure to add that last comma to the URL), you can see a basic example of a discussion board's tree structure. Right...
1
by: prefersgolfing | last post by:
I'm not using Master Pages, yet I'd like to display the contents of an HTML page within a <table><tr><td> on a .aspx. I have a lengthy guide already paginated in html. I'd like to embed the...
0
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've created my table and alli is fine. I name my <tdtags to make them easier to identify when my table gets large. Anyway, I am naming as such: <td id="cellName" > Now, sometimes when make a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.