MyBB Community Forums

Full Version: Table generator issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use table generator plugin https://community.mybb.com/mods.php?action=view&pid=276 to generate tables inside post.

But one table give class=trow1 color background(grey) and another table give class=tcat background(black).

You guys test with your self. Guide me how to keep a background grey for all tables.

Table show grey background (class=trow1)
On inspect element of post, it show class=trow1
 [table=95][tr][td][/td][td][b]ETIOLOGICALLY[/b][/td][/tr][tr][td]Compression collapse (passive)[/td][td]Due to Pleural effusion, Pneumothorax and Hydropneumothorax. Trachea and apex beat are shifted to the opposite side.[/td][/tr][tr][td]Absorption collapse (active)[/td][td]Caused by bronchial obstruction due to any cause. Air is absorbed distal to the obstruction and affected part is collapsed. Causes are:
• Neoplasm (bronchial carcinoma, adenoma)
• Foreign body (inert object and artificial teeth)
• Mucous plug (due to bronchial asthma, cystic fibrosis, postoperative)
• Aspergilloma
• Pressure on bronchus from outside (enlarged lymph node, aortic aneurysm, pericardial effusion causing collapse of left lung and enlarged left atrium in mitral stenosis)
• Rarely, congenital collapse due to absence of surfactant.[/td][/tr]

[tr][td]
[/td][td][b]ANATOMICALLY[/b][/td][/tr][tr][td]Central[/td][td]Mass lesion (shows more signs and symptoms). Common causes: 
Brochial carcinoma 
Adenoma
Enlarged lymph node or foreign body.[/td][/tr][tr][td]Peripheral[/td][td]Usually small collapse (shows less signs and symptoms). Most common causes:
Mucus plugging
Bronchial cast.[/td][/tr]

[tr][td][/td][td][/td][/tr]
[tr][td][b]ACCORDING TO AGE[/b][/td][td][b]CAUSES[/b][/td][/tr][tr][td]Neonate[/td][td]Congenital due to low or absent surfactant, Aspiration of meconium.[/td][/tr][tr][td]Children[/td][td]Foreign body[/td][/tr][tr][td]Young[/td][td]Bronchial adenoma and foreign body[/td][/tr][tr][td]Elderly[/td][td]Bronchial carcinoma and foreign body (artificial tooth)[/td][/tr][/table]

Table show black background (class=tcat1)
On inspect element, it showing class=tcat1

[table=95][tr][th]Fact[/th][th]Explanation[/th][/tr][tr][th]Fever[/th][th]Classical Kawasaki disease presents with a prolonged fever of ≥5 days, however if >4 of the principal clinical criteria are met, the diagnosis may be made with only 4 days of fever. Without treatment the fever continues for 1 to 3 weeks.[/th][/tr][tr][th]Fussiness[/th][th]Children with Kawasaki disease can present with extreme irritability. It is unknown why this occurs; a neuro-infectious etiology has been postulated.[/th][/tr][tr][th]Gastrointestinal symptoms[/th][th]Abdominal pain, vomiting, diarrhea and/or jaundice may be seen. This is due to systemic inflammation that often involves multiple organs.[/th][/tr][tr][th]Joint pain and swelling[/th][th]Joint pain and swelling may occur due to inflammation.[/th][/tr][tr][th]Ethnicity[/th][th]The highest relative risk for Kawasaki disease is in Asian children, especially children of Japanese descent; their risk is almost ten times that of children of Caucasian descent. This suggests a genetic predisposition to the disease.[/th][/tr][tr][th]Young age[/th][th]Kawasaki disease is most common in young children and predominantly affects children <5 years of age. A hypothesis is that an undiscovered infectious etiology could be a possible trigger for the disease, with older individuals having natural immunity to this pathogen.[/th][/tr][tr][th]Family history[/th][th]One percent of patients with Kawasaki disease have a positive family history. There is an increased incidence in siblings of an index case, often within several days of the disease's occurrence in the first child, and an increased concordance rate in identical twins. This is thought to be due to the interplay of genetics and environment.[/th][/tr][tr][th]Male gender[/th][th]Boys with the disease outnumber girls by ≈1.5:1.[/th][/tr][tr][th]Seasonal prevalence[/th][th]Kawasaki disease is most prevalent in the winter and spring. This could be due to an infectious etiology.[/th][/tr][tr][th]Sudden death[/th][th]Coronary artery aneurysms are a sequela in ≈25% of untreated cases; refractory disease also confers a high risk of developing aneurysms. These can lead to myocardial ischemia and sudden death. The underlying cause is inflammation of the coronary arteries.[/th][/tr][tr][th]Shock[/th][th]The incidence of Kawasaki disease shock syndrome is estimated at 7%. This can resemble toxic shock syndrome, and is believed to be multifactorial in origin.[/th][/tr][/table]
Are you using the default MyBB theme ?
Can you provide an url to your test ?

In your second table, you have th /th everywhere, where you need td /td. Seems you have checked "TH" when doing your first line, and it as been kept when adding others.

I made a post in your private section, with corrected source, it works.

I'll made tries to see if the trouble came from plugin or from a bad manipulation from you Smile
Thanks a lot Crazycat.
It was due to tick the box of TH while creating table.
+2 for you.

Is it possible to increase the width of raws in marked column in the attached image?

[attachment=43137]

Thank you.
No, you can't, it's auto-adaptive depending on the content of each column, td are created without any % of width.