Jump to content

Recommended Posts

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
table.sheet
{
border: solid;
padding: 5px;
border-color: rgb(0,0,0);
border-collapse: collapse;
border-width: 1px;
width: 766px;
}
[/quote]

Hello,
I'm having problems applying this definition to my table. Padding isn't working. For border-color, the inner lines are still grey color. Is there anyway to fix this?
Thnx
Link to comment
https://forums.phpfreaks.com/topic/10817-style-doesnt-work/
Share on other sites

I have different types of tables in my page. So I use class to solve my problem.

My code example is
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
<style type="text/css">
table.rect
{
background-color: rgb(245,233,217);
border: solid;
border-color: rgb(10,20,35);
border-width: 1px;
min-width: 776px;
}

table.sheet
{
border: solid;
padding: 5px;
border-color: rgb(0,0,0);
border-collapse: collapse;
border-width: 1px;
width: 766px;
}

</style>

<table border = "1" class = "sheet">
<tr>
<td >........</td>
</tr>
</table>

<table border = "1" class = "rect">
<tr>
<td >........</td>
</tr>
</table>

[/quote]

I'm quite new to CSS. I don't know whether this implementation is right or wrong. Thanks for ur reply.
Link to comment
https://forums.phpfreaks.com/topic/10817-style-doesnt-work/#findComment-40627
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.