How to make centered tab stops

Discussion in 'HTML & Website Design' started by dthoai, Jul 23, 2011.

  1. #1
    I need to make tab stops in my web page. I can make left and right tab stops using table but I don't know how to make centered tab stops. Would you please to help me?
     
    dthoai, Jul 23, 2011 IP
  2. suryawl

    suryawl Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    is that what you're trying to do? just remove the width when yes, it's just there to show that the text is in the center
     
    suryawl, Jul 23, 2011 IP
  3. dthoai

    dthoai Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #3
    No. What I'm trying to do is making 'div' (auto-width) is centered at specified location. For example, 'div' is centered at 200px from left-most of parent element.
     
    dthoai, Jul 23, 2011 IP
  4. gimles

    gimles Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you mean a tab stop as in a default left margin for each div?

    You could do this with css:

    
    
    .tabbed{
    
        margin-left: 200px;
    
    }
    
    
    Code (markup):
    Which would give a 200px margin on the left of each div with the class "tabbed".
     
    gimles, Jul 23, 2011 IP
  5. dthoai

    dthoai Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #5
    No. You mean left tab stop but what I need is centered tab stop. Some thing like centered tab stop in word.
     
    dthoai, Jul 23, 2011 IP
  6. gimles

    gimles Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Oh darn no, there isn't a tab stop property in CSS :(
     
    gimles, Jul 23, 2011 IP