Datatable floats over other elements

Datatable floats over other elements

madhungarianmadhungarian Posts: 2Questions: 0Answers: 0
edited October 2011 in General
This might be a CSS question but I really don't know where to begin. I have a datatable that appears to "float" over other elements in my page. For example, if I had a datatable and an , like so:
in head section...




$(document).ready(function() {
$('#paymentgrid').dataTable();
});



#paymentgrid { width: 100%; }
#payments { width: 800px; height: 100px;}


in form...


<% Html.Grid(Model.PaymentList)
.Columns(column =>
{
column.For(model => model.PaymentNumber);
column.For(model => String.Format("{0:C}",model.CollectionAmount)).Named("Collection Amount").DoNotEncode();
}).Attributes(id => "paymentgrid").Render();
%>


test

The if there were more than one row in the table, it would cover the h2. What do I need to do in the style sheet to make the h2 visible and keep the table in its own place?

Thanks. Any help is appreciated!

Replies

  • madhungarianmadhungarian Posts: 2Questions: 0Answers: 0
    I fixed my problem by setting height: auto in the style sheet for the data table.
This discussion has been closed.