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> Link to comment https://forums.phpfreaks.com/topic/210414-vertical-align-middle-with-listing/ 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. Link to comment https://forums.phpfreaks.com/topic/210414-vertical-align-middle-with-listing/#findComment-1108541 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. Link to comment https://forums.phpfreaks.com/topic/210414-vertical-align-middle-with-listing/#findComment-1108552 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.