开发者

images and form problems in a div

开发者 https://www.devze.com 2022-12-10 10:11 出处:网络
I have a div in the size of 900x30 I have a form in this div, but when I try to put an image after 开发者_Python百科the < / form > (the image is still inside the same div as the form), I see the i

I have a div in the size of 900x30

I have a form in this div, but when I try to put an image after 开发者_Python百科the < / form > (the image is still inside the same div as the form), I see the image on a new line.

How can i prevnt it and make the image show in the same line as the form ?

im using CSS btw...

thanks


You might try white-space: nowrap;


You probably need to float the image to the left or right:

.myDiv img {
    float: right;
}

If you post your markup it'll be easier for someone to give a more accurate answer :)


Have you tried setting the display attribute of both form and image to 'inline', just in case it's doing a block display?

0

精彩评论

暂无评论...
验证码 换一张
取 消