문제

I am using jquery/datatable. I have a column,Action that contains 3 hyperlink images. Right now, the 3 images is sometimes rendered on 2 separate line. I need them to be on 1 line. I think I need to set the column width. How do I do that?
Any help would be much appreciated. Thanks.

도움이 되었습니까?

해결책 2

I found the solution already. I need to add css white-space:nowrap; in a div surrounding the images.

Here is the code fragment

<div style="white-space:nowrap;">

다른 팁

you can do this with the css script :

if you column like this :

<div class="fixedWidth">
 <a href="#">link 1</a>
 <a href="#">link 2</a>
 <a href="#">link 3</a>
</div>

you can create the css script like this :

.fixedWidth{
 width : 200px !important;
}

try the another width until the view is correct

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top