MDanz Posted August 11, 2010 Share Posted August 11, 2010 the textfield displays at the bottom of the image. when i want it to be centered. I applied vertical-align:middle but no success. #addtopictostack ul { vertical-align:middle; } #addtopictostack li{ display:inline; list-style-type:none; } <ul id='addtopictostack'><li><img src='addtopic2stack.jpg' alt='addtopictostack' /></li><li><input type='text' size='20' value='Type Topic Here' /> <input type='submit' name='submit' value='submit' style='font-size:10px' /></li></ul> Quote Link to comment Share on other sites More sharing options...
damianjames Posted September 8, 2010 Share Posted September 8, 2010 Have you tried applying it to the image rather than the UL? You can also try using line-height or a percentage (can be negative) instead of middle for vertical-align for more fine-tuned alignment. Quote Link to comment Share on other sites More sharing options...
haku Posted September 8, 2010 Share Posted September 8, 2010 If you want to align something with an image, you need to set the vertical align on the image. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.