开发者

override display:block css property of td img

开发者 https://www.devze.com 2023-01-08 08:28 出处:网络
I have following css codefor layout. td img {display: block;} While displaying images for gallery, it is creating problem. so i want to remove the code.

I have following css code for layout. td img {display: block;}

While displaying images for gallery, it is creating problem. so i want to remove the code. But if i remove the code, the full layout breaks. Is ther any way to override the code , so that display:block doesnt get applied to my gallery's code.?

gallery thumbnails开发者_如何学运维 are displayed in table format

sample gallery thumbnail code

thanks in advance for any help or suggestions


If you know the ID of your gallery container, say #my_gallery, you can override the CSS just for the gallery:

#my_gallery > td img { display: inline; }


Use display:inline; on the gallery images, which is the default display for images.

0

精彩评论

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