Support the ongoing development of Laravel.io →
Laravel Views
Last updated 2 years ago.
0

Can you paste your html code ?

0

The page.blade.php file is here...

` @extends('layouts.app') @section('title') {{$page->title}} @stop

@section('content') <div class="user-member pft-display"> <div class="container"> <h1>{{$page->title}}</h1> </div> </div>

<div class="clearfix"></div>
@if($setting->ads == 'yes')
    <div class="text-center" style="margin: 20px 0">
        @if($ads->leaderboard != null)
            <br>{{ $ads->leaderboard }} <br>
        @else
            <img src="{{asset('uploads/dummy-leader.png')}}" alt="ad"> <br>
        @endif
    </div>
@endif

<div class="focus-wrapper pft-display">
    <div class="container text-left">
        <p>{!! $page->content !!}</p>
    </div>
</div>

@if($setting->ads == 'yes')
    <div class="text-center" style="margin: 20px 0">
        @if($ads->leaderboard != null)
            <br>{{ $ads->leaderboard }} <br>
        @else
            <img src="{{asset('uploads/dummy-leader.png')}}" alt="ad"> <br>
        @endif
    </div>
@endif

@stop

`

0
@if($setting->ads == 'yes')
    <div class="text-center container" style="margin: 20px 0">
        @if($ads->leaderboard != null)
            <br>{{ $ads->leaderboard }} <br>
        @else
            <img src="{{asset('uploads/dummy-leader.png')}}" alt="ad"> <br>
        @endif
    </div>
@endif```

I think you are messing up the style of that specific div in which ads are visible.Try putting some margin and padding for that div to align properly.
Last updated 4 years ago.

webfuelcode liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

Morish webfuelcode Joined 20 May 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.