How to change background color of div holding my table

How to change background color of div holding my table

mkleinoskymkleinosky Posts: 46Questions: 6Answers: 5

My CSS makes the page have a blue background, the content is in a

<

div> with white but when I get a DT/Editor table with the created divs work and stay white background until the Column filter widgets and table itslef
..
What selector is needed instead of my useless
$('#masterlist').parent().css("background-color","#ffffff");

on http://mosttraveledpeople.com/My-MasterList.php ?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    You need to edit or override the '.dataTables_wrapper' CSS class.

  • mkleinoskymkleinosky Posts: 46Questions: 6Answers: 5

    thanks, I added

    $('.dataTables_wrapper').css("background-color", "#ffffff");

    to no avail

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    I'm not sure why, but you have float:left on all tables and also specifically on your DataTable. I would suggest removing that. You can use the developer tools in your browser to experiment with your CSS and remove the floats.

    Allan

  • mkleinoskymkleinosky Posts: 46Questions: 6Answers: 5

    Brilliant - removing float: left fixed it- thank you (again)!

This discussion has been closed.