galih56's avatar

Why my pagination is not styled?

I make a view with a simple pagination.

 public function index()
    {
        $data = new Ruangrapat();
        $data = $data->paginate(7);
        return view('ajax-result.ruangrapat.index')->with('data', $data);
    }

The data will be displayed on a table and i use ->link for pagination buttons.But when i click 1 of them.The table will show the page but the page will be containing pure html without any css.How do i make the pagination show the page real time like ajax?

0 likes
3 replies
Cronix's avatar

Are you using a relative url to load your css? something like

<link href='css/yourcss.css' rel='stylesheet' type='text/css'>

instead of

<link href='/css/yourcss.css' rel='stylesheet' type='text/css'>

with a / before css? If so, that's probably why. Use the full domain to load the css, or use an absolute url instead of a relative one to force it to load the css starting from the site root.

jlrdw's avatar

Why my pagination is not styled?

You're not properly loading CSS.

You can view page source to see what css is loading.

Please or to participate in this conversation.