do u think you are familier with php?then check it out....

Discussion in 'PHP' started by sriducati, Jan 13, 2010.

  1. #1
    many guys know to change the font color,background color using php....but how about font background image?have you heard of this before?is it possible to change the font property so that it should have a background image???:) think think think
     
    sriducati, Jan 13, 2010 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    This is not done with PHP, it's done with HTML/CSS.
    There's no attribute to change the font's background (I think), just wrap a div around it.
     
    Sky AK47, Jan 13, 2010 IP
  3. Python

    Python Well-Known Member

    Messages:
    680
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Put your text into a paragraph tag and then use CSS to give that a background image... It has nothing to do with PHP!
     
    Python, Jan 13, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    Remember PHP is server-side, HTML is client-side...

    But one way would be to define the colour within a variable and then echo that in all the color values of your html tags.
     
    danx10, Jan 13, 2010 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,903
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #5
    Or are you talking about the php GD functions?
     
    sarahk, Jan 14, 2010 IP
  6. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hello sarhk thanks alot for your good response...well without using gd is it possible to change shadow properties?....!! just curious to know?if it is possible ! i have many creative ideas to implement on my scripts... :)
     
    sriducati, Jan 15, 2010 IP
  7. Steve136

    Steve136 Peon

    Messages:
    240
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can use shadows in CSS3 (beware, not all browsers support this currently) You can find more information at http://www.css3.info/preview/box-shadow/

    Regards,
    Steve
     
    Steve136, Jan 15, 2010 IP
  8. sarahk

    sarahk iTamer Staff

    Messages:
    28,903
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #8
    Like the others, I was trying to work out how PHP was going to fiddle with something that was a clientside effect. If you're not using GD then you are really looking at clientside technologies like CSS
     
    sarahk, Jan 15, 2010 IP
  9. maryjoanna

    maryjoanna Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    css can do that already, its no big deal
     
    maryjoanna, Jan 16, 2010 IP