MyBB Community Forums

Full Version: Add a class in any starting table html code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to add a class in any starting table html code for any pages. by default its showing <table width="100%" border="0" align="center">

i want to add a class on it
then add what's the problem in it ?

align="center" class="anything"

remember in table html tag most of the css properties doesn't work as those works in a div element.
i know how to add in every pages manually. but i want to add class in one place and then in every page where table html start the css will show
then you have to use javascript for that
No, just use the table selector in your css:
table {
   width: 100%;
   align: center;
   border: none;
}
You can also use tr and td. Have a look @ https://www.w3schools.com/css/css_table.asp