Hi
In below code i want Headings should appear in centre.
Code
htmlTable.Append("Sr.NameShort NameStatusAction");Thanks
Hi
In below code i want Headings should appear in centre.
htmlTable.Append("Sr.NameShort NameStatusAction");Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Jithu ThomasRank #437 · 5.7K reputationPosted Aug 24, 2024, 1:29 AM EDT
The tag, which will apply to all elements inside that row. Ensure that the GC
text-align: center;style is added to the tags that have . This might prevent potential rendering issues.style='display:none'are properly closed with>Gowtham CpRank #1,552 · 1K reputationPosted Aug 24, 2024, 1:32 AM EDT
To center your table headings, just add tag:
C#
Know the answer? Forums 01
Arun PottiAnswers in the forums20answers02
Tahir AnsariAnswers in the forums5answers03
Kamlesh KumarAnswers in the forums5answers04
Sam HobbsAnswers in the forums4answers05
Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.Join Full leaderboard → 2026
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
text-align: center;to thehtmlTable.Append("Sr.NameShort NameStatusAction");This centers all the headings at once, making your code clean and efficient!
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts