Force search to be in centre

Force search to be in centre

classic12classic12 Posts: 228Questions: 60Answers: 4

I have used the CSS code form here

http://live.datatables.net/wegotudi/198/edit

div.dataTables_wrapper  div.dataTables_filter {
  width: 100%;
  float: none;
  text-align: center;
}

The app is here:
http://mydubaidream.com/dubai4/

Click on hamburger
select news
The search seems to be in the centre of something to the right.

When the screen is smaller the search bar goes to the middle.

Cheers

Steve Warby

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi Steve,

    You can set the CSS of the container, something like this:

    $('.col-sm-6').css('margin','auto').css('width','60%')
    

    I just tried that and it shifted it along nicely,

    Cheers,

    Colin

This discussion has been closed.