Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Question.

  1. #1
    New Coder
    Join Date
    May 2010
    Posts
    79
    Thanks
    15
    Thanked 2 Times in 2 Posts

    Question.

    How to do something like this? :
    (done with paint)
    Wherein the Admin is between the image?

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by kenshn111 View Post
    How to do something like this? :
    (done with paint)
    Wherein the Admin is between the image?
    Not clear what you mean or intend.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    New Coder
    Join Date
    May 2010
    Posts
    79
    Thanks
    15
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by kenshn111 View Post
    How to do something like this? :
    (done with paint)
    Wherein the Admin is between the image?
    How to do something like that in CSS/HTML?

  • #4
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    845
    Thanks
    11
    Thanked 79 Times in 77 Posts
    I, also, am not clear on your intentions. Do you want the text "ADMIN" over the image itself as it would be hard to put it "between" as you requested. Setting the image as a background of a div container and then putting the text positioned over can be done if that's what you want.
    ☠ ☠RON☠ ☠

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    That element would need to have a set height and then it would need to have a line-height set to match that height. This would only work if the text never went to two lines and you didn't have stacked images.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Can't give a solution without seeing your complete code (html+css) or a link to your page, though try setting vertical-align:middle; to that image in style/CSS.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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