This is a migrated thread and some comments may be shown as answers.

Prevent Line Break After Grid

3 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marbry
Top achievements
Rank 1
Marbry asked on 17 Jan 2012, 12:00 AM
The grid renders as a <div>, is there something I can set so that it does not generate a line break after itself?

   I would like to have,
[Grid][Other Content]
   not
[Grid]
[Other Content]

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Jan 2012, 05:00 AM
Hello,

Try setting white-space property in CSS as nowrap.

Thanks,
Princy.
0
Marbry
Top achievements
Rank 1
answered on 17 Jan 2012, 03:28 PM
That was one of the first things I tried, setting it on the CSS class of the grid, wrapping the grid and the content in a span with that set.  It had no effect.
0
Marbry
Top achievements
Rank 1
answered on 20 Jan 2012, 03:33 PM
Hmm, it looks like it lost my reply, but I was able to get this working with the combination of the styles below  applied to the grid.

white-space: nowrap;
float: left;
Tags
Grid
Asked by
Marbry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Marbry
Top achievements
Rank 1
Share this question
or