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 4051462
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:11:52+00:00 2026-05-20T14:11:52+00:00

I have no idea how to do that and it is very frustrating. I’ve

  • 0

I have no idea how to do that and it is very frustrating.

I’ve tried this, but it doesn’t do anything.

table td
{
    table-layout: fixed;
    width: 200px;
    word-wrap:break-word;
}

And also maybe it is possible to somehow style every column separately. I’m using Code Igniter table helper module so I have little access over each td, tr etc…

Okey, I fixed my problem using
table

{
    word-break: break-all;
}

td
{
    padding-left: 6px;
    padding-right: 6px;
    max-width: 500px;
    min-width: 100px;
}

Still I will probablt build my own HTML Table class to make things much easier and more controllable in future.

  • 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-20T14:11:53+00:00Added an answer on May 20, 2026 at 2:11 pm

    The table class is somewhat limited in what it can and can’t do as you’ve probably noticed.

    If you need anything more than the basic table (you can set even/odd row classes in CI), then you will likely need to create your own table class/create your own table output (it’s not exactly difficult).

    Also, I’m pretty sure CI’s table generator will force a width, unless you specify otherwise with a custom template

    $tmpl = array (
    'table_open'   => '<table border="0" width="XXX" cellpadding="4" cellspacing="0">',
    

    As a result, even if you style the TD’s, the table width will still take priority if you like and confine the TDs.

    A table width of 100% will still fill all the available width and force the TD’s to be sized that way, even if your css says otherwise.

    The only way I know around this is to either ommit the width from the <table> entirely which could be unpredictable, or set the table to be as wide as 200 * number of columns, and everything will display nicely.

    (If you add inline-block to the TD you can force the width to 200px, but table td’s, by default are display:table-cell)

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

Sidebar

Related Questions

I have a CheckBoxList on my page that isn't behaving very well. The idea
I have some idea that it is due to some complex calculation, but i
The idea is that say you have the following table. ------------- | oID |
I have started down a rather exciting project. I have had this idea that
I have an asp.net MVC app in production that very seldom but very consistently
I have an idea that sounds like it might work but I'm not entirely
For the last year or so I have followed the idea that if a
I have always gone by the idea that casting should be avoided at all
We have developed a set of crystal reports (not my idea) that are to
Im working on a small application to try out an idea that I have.

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.