Xanuran
New Member
Want a Pokemon experience that you won't forget? Join ORAS! https://oras.freeforums.net
Posts: 38
inherit
267900
0
Nov 18, 2024 8:44:22 GMT -8
Xanuran
Want a Pokemon experience that you won't forget? Join ORAS! https://oras.freeforums.net
38
April 2023
minepikgamer
|
Post by Xanuran on May 10, 2024 9:20:06 GMT -8
Forum URL: oras.freeforums.netAfter I put code into the global footer, I noticed that every board was aligned to the center instead of the left where they belong. Before and after using the code: This is the code I used: <div class="container"> <div class="title-bar"><h2>Our Affiliates</h2></div> <div class="content"> <table class="list"> <tbody> <tr class="last"> <td> <!DOCTYPE html> <html> <head> <style> h1 {text-align: center;} p {text-align: center;} div {text-align: center;} </style> </head> <body>
<p><a href="http://oras.freeforums.net"><img src="https://iili.io/JSeHskl.png"></a></p>
</body> </html> </td> </tr> </tbody> </table> </div> </div>
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on May 10, 2024 9:30:52 GMT -8
The first thing I see is you have head and body tags in that code; that is what your forum is already wrapped in so it's unnecessary and likely the cause of the issue.
Take out everything in the <td> (excluding the opening td tag) starting with <!DOCTYPE html>, except for the link to your forum, and then anything after that except the closing </td>.
Then move the style tags either into your global header still wrapped in style tags or into the style sheet for your theme.
I would recommend adding a class to the CSS elements you have listed there as I presume you don't want ALL text to be centred. Make sure to add them as classes to the HTML too eg;
<h1 class="affiliates">
for html
.affiliates h1
for css
|
|