Bring to Front - Send to Back

Discussion in 'PHP' started by gasper000, Jan 10, 2009.

  1. #1
    I have some text that I wanna bring to front of an image. I do that in Javascript by using z-index.They call it the stack order of an element...so does anybody know what are the similar tags in php ?! If you can provide me with a link of related php tags that would be much appreciated.
     
    gasper000, Jan 10, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    Hmmm I dont know if thats possible but you can use CSS's z-index
     
    crivion, Jan 10, 2009 IP
  3. gasper000

    gasper000 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The problem with using css is that this is a conditional php session, which displays the username of the customer once he/she logs in. I don't know how to do such a thing with css.

    There are some tags you may use to determine the font the color etc... so may be there's a tag that can bring it forward or send it backward.

    Here's the the code so it may make the problem clear.
      if (isset($_SESSION['name'])) {
     echo "<div style=\"margin-left: 20px;margin-top: 20px;\"><p><FONT face=Verdana>  <FONT size=2><FONT color=#000000><b>{$_SESSION['name']}</b></FONT></FONT></FONT></p></div>";
     }
    Code (markup):
     
    gasper000, Jan 10, 2009 IP