Different positions

Discussion in 'PHP' started by WbDev, Jun 27, 2011.

  1. #1
    Hello!

    I am developing something like chat box and I want for example when someone post something to be on one side then the other guy post on other side.

    Example:
    [​IMG]

    I want this in PHP (just for different sides)
     
    WbDev, Jun 27, 2011 IP
  2. kinggomez

    kinggomez Active Member

    Messages:
    268
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    You could assign each person with a specific ID and then use that to change CSS class when they write a message. eg. person one has ID 1, person two has ID 2. use CSS class .left-box when the ID of the poster = 1, and .right-box when ID = 2
     
    kinggomez, Jun 28, 2011 IP