Brad P Well-known member Nov 18, 2020 #1 Hi all How can we centre the advertising logo, currently it is displaying on the left side.
O Old Nick Well-known member Nov 18, 2020 #2 Hello, How do you displaying the ads ? Using native Ads manager in ACP, add-on, or directly in the template ? Upvote 0 Downvote
Hello, How do you displaying the ads ? Using native Ads manager in ACP, add-on, or directly in the template ?
Brad P Well-known member Nov 18, 2020 #3 nicodak said: Ads manager in ACP Click to expand... Yes on this mate Upvote 0 Downvote
Paul B XenForo moderator Staff member Nov 18, 2020 #4 You should just be able to wrap the ad in a div which centres it. Code: <div style="margin: auto"> Ad here </div> Upvote 0 Downvote
You should just be able to wrap the ad in a div which centres it. Code: <div style="margin: auto"> Ad here </div>
O Old Nick Well-known member Nov 18, 2020 #5 CSS: .ads { width: 100%; margin: auto; } ? Upvote 0 Downvote
Brad P Well-known member Nov 18, 2020 #6 Didn't work, I'll try what Brogan has said later. Upvote 0 Downvote
Paul B XenForo moderator Staff member Nov 18, 2020 #7 What @nicodak posted should also work, as long as you add the CSS to the extra.less template and use the class in the div. Code: <div class="ads"> Ad here </div> Upvote 0 Downvote
What @nicodak posted should also work, as long as you add the CSS to the extra.less template and use the class in the div. Code: <div class="ads"> Ad here </div>
Brad P Well-known member Nov 18, 2020 #8 Brogan said: What @nicodak posted should also work, as long as you add the CSS to the extra.less template and use the class in the div. Code: <div class="ads"> Ad here </div> Click to expand... Ah okay, brill thanks I'll try that later. Thank you Upvote 0 Downvote
Brogan said: What @nicodak posted should also work, as long as you add the CSS to the extra.less template and use the class in the div. Code: <div class="ads"> Ad here </div> Click to expand... Ah okay, brill thanks I'll try that later. Thank you