table border=0 & td border = 1

Pagina: 1
Acties:

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
hoe krijg ik het voor elkaar om geen table-border te krijgen, maar wel een td border en deze op border=1 te zetten ?? (zodat je een witte DUNNE lijn om alle td's krijgt, oftewel, een tabel-structuur)

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

Dat krijg je toch ook door je table border op 1 te zetten? :?

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
nee..op deze wijze krijg ik een

dubbele lijn..1 lijn voor de td en 1 lijn voor de table..

  • Willem
  • Registratie: Februari 2001
  • Laatst online: 17-09 19:55
Een class in CSS:
code:
1
2
3
4
5
6
.pens
    {
    border-style: solid;
    border-width: 1px;
    border-color: #000000;
    }

En dan in je HTML:
code:
1
<table border="0" ... class="pens">

Motor (of auto) onderhoud bijhouden


  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 21:19

Pelle

🚴‍♂️

Op woensdag 17 oktober 2001 13:52 schreef willem169 het volgende:
En dan in je HTML:
code:
1
<table border="0" ... class="pens">
Jij bedoelt vast:
code:
1
2
3
4
5
6
7
8
9
<table border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td class="pens">blab</td>
    <td class="pens">melp</td>
  </tr>  <tr>
    <td class="pens">blab</td>
    <td class="pens">melp</td>
  </tr>
</table>

Hij wil namelijk geen border om z'n tabel, maar wel om z'n cells...

Verwijderd

en zo doet ie het prima:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<style>
.pens
    {
    border-style: solid;
    border-width: 1px;
    border-color: #000000;
    }
</style>

<body>

<table border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td class="pens">blab en ja hoor hij doet het</td>
    <td class="pens">melp en ook deze doet het</td>
  </tr>  <tr>
    <td class="pens">mooi lijntje erom heen he?!</td>
    <td class="pens">nou tot ziens allemaal dan maar...</td>
  </tr>
</table>

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

full CSS mode:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<style>
table.pens {
   border-left:1px solid #000000;
   border-top:1px solid #000000;
}
table.pens td
    {
   border-bottom:1px solid #000000;
   border-right:1px solid #000000;
   margin:0 0 0 0;
   padding:3px 3px 3px 3px;
    }
</style>

<table class="pens" cellspacing="0" cellpadding="0" border="0">
   <tr>
    <td>blab en ja hoor hij doet het</td>
    <td>melp en ook deze doet het</td>
  </tr>  <tr>
    <td>mooi lijntje erom heen he?!</td>
    <td>nou tot ziens allemaal dan maar...</td>
  </tr>
</table>

alleen dit soort CSS geintjes doen het niet in NS4.7
wel in IE 5+ (4 ook :?) en NS6+

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • Wally-S
  • Registratie: September 2001
  • Laatst online: 17-09 18:55

Wally-S

-Snowboarding is art-

Gewoon "cellspacing=0" bij de table defenition zetten.
Dan krijg je geen dubbele lijnen

Snow is only frozen water


  • Willem
  • Registratie: Februari 2001
  • Laatst online: 17-09 19:55
En zo hebben we altijd baas boven baas... ;)

Motor (of auto) onderhoud bijhouden


  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Op woensdag 17 oktober 2001 17:56 schreef Wally-S het volgende:
Gewoon "cellspacing=0" bij de table defenition zetten.
Dan krijg je geen dubbele lijnen
:? Dan kijk je niet goed

2 pixels dik. Ziet er niet uit

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz

Pagina: 1