开发者

two div in a line one is having image

开发者 https://www.devze.com 2023-02-03 16:13 出处:网络
In this fiddle I would like the \"Delete\" and \"Update\" buttons to appear in th开发者_开发技巧e correct position instead of below the image.

In this fiddle I would like the "Delete" and "Update" buttons to appear in th开发者_开发技巧e correct position instead of below the image.

Please suggest how it can be done.

Updated jsFiddle example


You should set the image and the buttons to float positioning mode!

For example, check this example out: http://www.jsfiddle.net/steweb/77bdN/

this is your example forked : http://jsfiddle.net/vVtBt/ (you have to set a width on the image)


You need to set fixed width for the floating elements, you also misplaced the clear CSS... clean and working version of your jsFiddle: http://jsfiddle.net/yahavbr/2kmJe/3/

The trick was setting width to both div elements with float.

0

精彩评论

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

关注公众号