Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Expand tr to table width?

    Hey all,

    I took a prewritten cfm file with imbedded css to try and make this application pretty, but am having an issue. Some rows of a table are not stretching to the width of the table like the others, it's all condensed to the left side. Also the columns of the different rows are not lined up, each cell is wrapped around it's contents and aligned to the left.

    Is there a css style that I'm not aware of that is likely applied to this that I can remove in order to get these rows to space out evenly and span the width of the table?

    Many thanks!!

    Lynne

  • #2
    Regular Coder dan-dan's Avatar
    Join Date
    Aug 2009
    Location
    England
    Posts
    483
    Thanks
    22
    Thanked 79 Times in 78 Posts
    Can you post the tables HTML and CSS.

  • #3
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Cant

    Can't sorry, there's stuff in there we don't want taken. I was hoping someone could let me know the styles that would typically result it overridding the table format and collapsing everything to one side.

  • #4
    Regular Coder dan-dan's Avatar
    Join Date
    Aug 2009
    Location
    England
    Posts
    483
    Thanks
    22
    Thanked 79 Times in 78 Posts
    Without seeing it, I'm guessing it's not a CSS issue, but that certain cells that are meant to span across multiple columns are missing colspan="x".
    eg:

    Code:
    <table>
    
    <tr>
         <td>1</td><td>2</td>
    </tr>
    
    <tr>
         <td colspan="2">3</td>
    </tr>
    
    </table>

  • Users who have thanked dan-dan for this post:

    slynne212 (03-27-2012)

  • #5
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thanks

    No worries, thanks!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •