Title: Why can&#8217;t customize the border width?
Last modified: December 29, 2016

---

# Why can’t customize the border width?

 *  [luofeiyu](https://wordpress.org/support/users/luofeiyu/)
 * (@luofeiyu)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/why-cant-customize-the-border-width/)
 * Here is my customized css file in wp4.7.
 * .mytable {
    border-collapse: collapse; }
 * .mytable td {
    border: 4px solid #999; padding: 0.5rem; text-align: left; width:
   60px; } Here is the html content . <table class=”mytable”> <tbody> <tr> <td>name
   </td> <td>number</td> <td>time</td> </tr> <tr> <td>tom</td> <td>10</td> <td>9
   </td> </tr> <tr> <td>marry</td> <td>8</td> <td>5</td> </tr> </tbody> </table>
 * I found that it does no matter which value the width in “.mytable td” is.
    For
   example,the same effect for css format1 and css format2 in customized css file.
 * css format1
 * .mytable {
    border-collapse: collapse; }
 * .mytable td {
    border: 4px solid #999; padding: 0.5rem; text-align: left; width:
   60px; }
 * css format2
    .mytable { border-collapse: collapse; }
 * .mytable td {
    border: 4px solid #999; padding: 0.5rem; text-align: left; width:
   100px; }
 * The content has same effect after publishing it.
    It does no matter which value
   the width in “.mytable td” is.
 * > [View post on imgur.com](https://imgur.com/a/nPR8b)
 * Which factor result in it?how to fix it?
    -  This topic was modified 9 years, 4 months ago by [luofeiyu](https://wordpress.org/support/users/luofeiyu/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/why-cant-customize-the-border-width/#post-8599527)
 * It would depend on your theme’s default styling. It’s possible that its CSS is
   of a higher specificity. Do you have a link to an affected page?
 *  Thread Starter [luofeiyu](https://wordpress.org/support/users/luofeiyu/)
 * (@luofeiyu)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/why-cant-customize-the-border-width/#post-8608738)
 * Here is my sample site
    [http://hgoods.site/wp/](http://hgoods.site/wp/)
 * > [View post on imgur.com](https://imgur.com/a/SiiU6)
 * I have changed the color into green.
    td’s Width can’t be set on customized css
   file.
    -  This reply was modified 9 years, 4 months ago by [luofeiyu](https://wordpress.org/support/users/luofeiyu/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why can’t customize the border width?’ is closed to new replies.

## Tags

 * [table width](https://wordpress.org/support/topic-tag/table-width/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [luofeiyu](https://wordpress.org/support/users/luofeiyu/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/why-cant-customize-the-border-width/#post-8608738)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
