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 4 of 4
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Centering the hidden textbox

    I WANT TO DISPLAY THE HIDDEN TEXTBOX TO CENTER OF MY PAGE>

    WHAT IS THE CODE TO CENTER IT ON MY PAGE


    <input type="hidden" id="banner1" value="<b>Copy and paste this code into your website/blog!</b><br /><textarea cols='60' rows='2' readonly><a href='http://www.bux3.com/<?=$mynick?>' target='_blank'><img src='http://www.bux3.com/banners/banner1.gif' border='0'></a></textarea>">

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I WANT TO DISPLAY THE HIDDEN TEXTBOX TO CENTER OF MY PAGE>
    If it's hidden, then who'll notice whether it's centered or not?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reply

    but when a user clicks on an image it is visible and align to left
    Last edited by shubho; 05-25-2009 at 10:18 AM.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Ok, but you can't add a tag in the value attribute of another tag, as in your above code.
    And to center an input element(which is inline) be default, can be easily centered by setting a style of text-align:center; to it's parent element.

    PS: Write valid code and validate often while development.
    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
    •