...

View Full Version : Centering the hidden textbox



shubho
05-25-2009, 09:45 AM
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>">

abduraooft
05-25-2009, 09:51 AM
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?

shubho
05-25-2009, 10:15 AM
but when a user clicks on an image it is visible and align to left

abduraooft
05-25-2009, 11:48 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum