This is a discussion on "Positioning images next to input box" within the Web Page Design section. This forum, and the thread "Positioning images next to input box are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Positioning images next to input box
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Positioning images next to input box
I have a php captcha image which is displayed and next to it I have an input text box where the user has ti enter the code.
I have noticed that the image is slightly higher than the text box by about 3 px. I have tried using vspace in the image code but both the image and text box move. Is there a way without using tables how I can align the top of the image with the text box |
|
|
|
#2
|
|||
|
|||
|
Re: Positioning images next to input box
Wrap both items in the same <div> and do a vertical-align: top; in css. |
|
#3
|
||||
|
||||
|
Re: Positioning images next to input box
Or you can float them both right and have the text box first in the html, if some other factor doesn't prevent it.
|
![]() |
| Tags |
| positioning, images, next, input, box |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Positioning Text, Links and Images | DregondRahl | Web Page Design | 4 | Jun 7th, 2007 11:34 |
| Positioning images | rubyfruit | Web Page Design | 25 | Mar 31st, 2007 14:37 |
| Positioning images? | Brocula | Web Page Design | 3 | Oct 15th, 2006 11:12 |
| Anyone got any input on this? | Accurax | PHP Forum | 7 | May 9th, 2006 14:12 |
| Positioning images when used in lists | wheatus | Web Page Design | 6 | Aug 17th, 2004 15:53 |