开发者

floating div to the right creates gray area on the left

开发者 https://www.devze.com 2023-03-14 07:11 出处:网络
I am creating a div and inside it am creating a table. Then I am floating the div to the right like in this example. But when I am floating the div to the ri开发者_C百科ght, its creating gray area to

I am creating a div and inside it am creating a table. Then I am floating the div to the right like in this example. But when I am floating the div to the ri开发者_C百科ght, its creating gray area to the left and little gray to the right of its box. The jsfiddle example shows everything fine but the problem is with the actual page I am working on. Do I need to apply any css along with float:right?


Do I need to apply any css along with float:right?

Typically, you would also clear that float somewhere else. That may be your problem, though without the actual code, it is hard to answer the question you didn't ask but probably meant to: How do I get rid of my gray areas?

0

精彩评论

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