SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 33 of 33
  1. #26
    SitePoint Member
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    centralize table

    hello folks,
    what do i do to centralize the whole "dynatable" or table.

    thanks

  2. #27
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Hi there lawchellie,

    Welcome to the forums

    Could you explain what you mean by "centralize".

    If you simply want to have it appear in the middle of the screen, you can do this with CSS: margin:0 auto;

  3. #28
    SitePoint Member
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    table-midddle

    yes, u were right of what i meant, under what tag element or id or class do i place it?

    i mean having the table in the middle of the screen.

    thanks

  4. #29
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Just use CSS.

    e.g.

    Code CSS:
    .myTable{ margin:0 auto; }

    HTML Code:
    <table class="myTable">
    ...
    </table>
    See here for a more thorough explination: http://designshack.net/articles/css/...hing-with-css/

  5. #30
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    It works great I just have 2 inquiries:

    Whenever you remove a row, the id count does not keep its order. Example: if id=2 is removed, then id=3 should become id=2 and so on. Is there a way it can be included a "auto-order" piece regarding the id field?

    The one is how to disable when the rows count reaches a number. For example: i just want to allow to add 5 columns and then the "add" button go to disabled.

    Thank you for your help.

    Regards,

    Pablo B.

  6. #31
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Hi there,

    Welcome to the forums

    To avoid misunderstandings could you please post the code with which you are currently working.

  7. #32
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    Hi there,

    Welcome to the forums

    To avoid misunderstandings could you please post the code with which you are currently working.
    Hi, my bad It is the same you have at the beginning.

    Here is the link to Fiddle: http://jsfiddle.net/2Ma36/

    Hope this helps

    Regards,

    Pablo B.

  8. #33
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Thanks.

    Here you go: fiddle.

    By way of a disclaimer, the original code isn't mine (I seem to have taken it over) and could be tightened up a bit.
    If I get chance I'll rewrite this at some point.


Bookmarks

Posting Permissions

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