Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9268293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:46:27+00:00 2026-06-18T14:46:27+00:00

Please see this JSFIDDLE td.rhead { width: 300px; } Why doesn’t the CSS width

  • 0

Please see this JSFIDDLE

td.rhead { width: 300px; }

Why doesn’t the CSS width work?

<table>
<thead>
<tr>
<td class="rhead">need 300px</td>
<td colspan="7">Week #0</td>
<td colspan="7">Week #1</td>
<!-- etc..-->
</tr>
<tr>
<td class="rhead"></td>
<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td>
<td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td>
<!-- etc... -->
</tr>
<thead>
</table>

Also, what are the effects of position:fixed, absolute etc have on td widths if any? I am looking for a reason more than a fix. I am hoping to understand how it works.

td width is not 300px as desired

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:46:28+00:00Added an answer on June 18, 2026 at 2:46 pm

    This may not be what you want to hear, but display: table-cell does not respect width and will be collapsed based on the width of the entire table. You can get around this easily just by having a display: block element inside of the table cell itself whose width you specify, e.g

    <td><div style="width: 300px;">wide</div></td>
    

    This shouldn’t make much of a difference if the <table> itself is position: fixed or absolute because the position of the cells are all static relative to the table.

    http://jsfiddle.net/ExplosionPIlls/Mkq8L/4/

    EDIT: I can’t take credit, but as the comments say you can just use min-width instead of width on the table cell instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To understand what I mean, please see this snippet: <table style=width: 100%> <tbody><tr><td> <div
Please see this: http://jsfiddle.net/uNbYu/1/ If you click submit, the button doesn't do anything, but
I need some help with this accordion. Please see the demo here. http://jsfiddle.net/a36RL/ $(document).ready(function()
Please see this jsFiddle: https://jsfiddle.net/Wmq6f/ I have a textarea that has a background image,
First: please see this fiddle: http://jsfiddle.net/gamehelp16/77ssr/ So, these images: (source: placekitten.com ) Uses the
This question was asked here but the issue wasn't resolved. Please see this jsfiddle
please see this example http://jsfiddle.net/7trcV/ what I'm trying to achieve is ability to put
please see this example: http://jsfiddle.net/qTjdX/ I want the red border-bottom to show as 1
Please see my this fiddle: jsfiddle.net/jWKdK/ And help me to add border to the
Please check out this jsfiddle http://jsfiddle.net/rr4GH/1/ As you can see its a round edge

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.