1
<table>
    <tr>
        <td>One</td>
        <td>Two</td>
        <td class="skinny">$$</td>
        <td>Four</td>
    </tr>
</table>

I'm trying to make all of the tds the same width, except for the one with class 'skinny'. I can't seem to change just the skinny one though.

http://jsfiddle.net/tZHgV/

I'm trying to make the table look like this:

|   One   |   Two   |$$|   Four   |

where one, two, and four are the same width. How can I change just one class of tds' width?

1 Answer 1

4

Change your CSS to this

.skinny {
    width: 5px;
    min-width: 5px;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.