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

  • SEARCH
  • Home
  • 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 332283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:51:10+00:00 2026-05-12T09:51:10+00:00

I have a style defined for tables. I then have a .tablestyle th {

  • 0

I have a style defined for tables. I then have a .tablestyle th { height:26px } …

I now have a need to have a particular (one not all) th in the table auto determine its height.

<table class="tablestyle">
<tr><th>Normal Stuff</th></tr>
<tr><th>Long Stuff</th></tr>
</table>

The long stuff th needs a height of x, where x > 26px, but unknown… I’ve tried placing a style attribute on the th tag saying height:auto, but it doesn’t seem to honor the auto assignment. If I put height: 200px in the style attribute, it works fine, going to 200px. The problem is that I really need the height to be determined based on content of the th…

I realize that I can make more specific styles and I’m fine. I’d like if possible, to simply decorate only the affected tag instead of creating a separate style.

Additional information:
This is for a tabular data input form, and we have the same need for td tags as well.

  • 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-05-12T09:51:10+00:00Added an answer on May 12, 2026 at 9:51 am

    try to add !important at the end of your css attribute

    height: 500px !important;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined style for my textboxes that would show hints about what to
I have defined style for TabWidget as below: <style name=MyTheme parent=@android:style/Theme.Light> <item name=android:tabWidgetStyle>@style/LightTabWidget</item> </style>
I have a device witch use binary format style config, and i have to
I am defining some CSS classes which, when applied to a table, will generate
I'm working on a internal web application (only employees can log in) and need
I'm not too familiar with using the <h:messages> element in JSF. What I'm trying
I have a website that, upon clicking a link generates a div. Allow me
I am using nested master pages, which may or may not cause the problem
I made a neat little photo gallery here at - http://schnell.dreamhosters.com/wallpapers.php Feel free to
I want to render 6 blocks on a page asynchronously using richfaces a4j support.

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.