Frame shows spaces between the table cells.

C

Cal Who

I want to making a frame so I made a table:

..
<table>

<tr><td id="TL"></td><td id="T"></td><td id="TR"></td></tr>

<tr><td id="L"></td><td id="C"></td><td id="R"></td></tr>

<tr><td id="BL"></td><td id="B"></td><td id="BR"></td></tr>





</table>

and in my .css added things like that shown below.

Works OK except that the cells do not touch. There is a little space between
the images like there is a margin or padding.

Got any ides how to fix that?


Thanks
#BR

{

background:url("../MapBorderImages/BR.jpg") no-repeat scroll left top
transparent;

width:28px;

height:28px;

padding :0 ;

margin :0 ;


}

?

#B

{

background:url("../MapBorderImages/B.jpg") repeat scroll left top
transparent;

width:100px;

height:28px;

padding :0 ;

margin :0 ;


}
 
G

Guest

I want to making a frame so I made a table:

.
<table>

<tr><td id="TL"></td><td id="T"></td><td id="TR"></td></tr>

<tr><td id="L"></td><td id="C"></td><td id="R"></td></tr>

<tr><td id="BL"></td><td id="B"></td><td id="BR"></td></tr>

</table>

and in my .css added things like that shown below.

Works OK except that the cells do not touch. There is a little space between
the images like there is a margin or padding.

Got any ides how to fix that?

Thanks
#BR

{

background:url("../MapBorderImages/BR.jpg") no-repeat scroll left top
transparent;

width:28px;

height:28px;

padding :0 ;

margin :0 ;

}

?

#B

{

background:url("../MapBorderImages/B.jpg") repeat scroll left top
transparent;

width:100px;

height:28px;

padding :0 ;

margin :0 ;



}

<table cellpadding="0" cellspacing="0" border="0">
 
C

Cal Who

I want to making a frame so I made a table:

.
<table>

<tr><td id="TL"></td><td id="T"></td><td id="TR"></td></tr>

<tr><td id="L"></td><td id="C"></td><td id="R"></td></tr>

<tr><td id="BL"></td><td id="B"></td><td id="BR"></td></tr>

</table>

and in my .css added things like that shown below.

Works OK except that the cells do not touch. There is a little space
between
the images like there is a margin or padding.

Got any ides how to fix that?

Thanks
#BR

{

background:url("../MapBorderImages/BR.jpg") no-repeat scroll left top
transparent;

width:28px;

height:28px;

padding :0 ;

margin :0 ;

}

?

#B

{

background:url("../MapBorderImages/B.jpg") repeat scroll left top
transparent;

width:100px;

height:28px;

padding :0 ;

margin :0 ;



}

<table cellpadding="0" cellspacing="0" border="0">


That did it. I tried putting it into my .css file but I was told they were
unknown property names. Comment??

But it works great in the markup.

Thanks
 
G

Guest

<table cellpadding="0" cellspacing="0" border="0">

That did it. I tried putting it into my .css file but I was told they were
unknown property names. Comment??

But it works great in the markup.

Thanks

Well, there isn't actually a CSS properties for cellpadding or
cellspacing, but there is the CSS padding property which allows you to
achieve the same effect.

table {
border-collapse: collapse;
}
table td,
table th {
padding: 0;
}

but this may not work in the same way in all browsers and I would
recommend to use the cellspacing/cellpadding attributes.
 
C

Cal Who

<table cellpadding="0" cellspacing="0" border="0">

That did it. I tried putting it into my .css file but I was told they were
unknown property names. Comment??

But it works great in the markup.

Thanks

Well, there isn't actually a CSS properties for cellpadding or
cellspacing, but there is the CSS padding property which allows you to
achieve the same effect.

table {
border-collapse: collapse;
}
table td,
table th {
padding: 0;
}

but this may not work in the same way in all browsers and I would
recommend to use the cellspacing/cellpadding attributes.


Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top