table with multiple column widths

  • Author
    Posts
  • #979597

    gallupadmin
    Member

    Hi there,
    I have been trying to adjust my table and having issues. I want 4 columns- the first two would be around 20% of the page, the next 40%, and the last 20%. After searching it looks like I must change the CSS. Is this correct? Any idea how to do this? I can’t find anything that seems to work… using modern news.

    The blog I need help with is bullyinginthemedia.com.

    #979899

    zandyring
    Staff

    Gallup,
    It’s difficult for us volunteers to help because your blog is set to private instead of public.
    Regardless, you will need to have the custom CSS upgrade, if you don’t already.
    Good luck!
    -Z

    #979911

    You can use your html/text mode to put in your table something along these lines. There are also CSS/HTML solutions, but if you are just doing a table every now and then is might work for you. You would adjust the overall width to the available width in your theme. And use your own title and values. Add rows as needed. See if this gets you started.

    <table border="1" width="400">
      <tr>
        <th width="20%">Title1</th>
     <th width="20%">Title2</th>
        <th width="40%">Title3</th>
     <th width="20%">Title4</th>
      </tr>
      <tr>
        <td>January</td>
        <td>$100</td>
    <td>$100</td>
    <td>$100</td>
    
      </tr>
      <tr>
        <td>February</td>
      <td>$80</td>
    <td>$80</td>
     <td>$80</td>
    
      </tr>
    </table>

    #979912

    The above does not need the CSS customization.

    #979914

    zandyring
    Staff

    Ahh if you want a table within a post, then yes – the above from HoustonWeaver will be helpful. Sorry, my assumption was that you wanted your page layout set up in columns (not a table at all). I apologize.

    #979915

    Zandyring … And of course there are HTML CSS solutions but if it’s just the odd table maybe this kind of thing would suffice. But you might be right about what the OP wants. Will have to see what they say.

The topic ‘table with multiple column widths’ is closed to new replies.