A better way of using my css code

  • 1
  • Question
  • Updated 8 years ago
  • Answered
My website: www.mcran.com
I have a silver account

You will notice that I have put h5 class="heading2 in every table row. Is there a better way of doing this? I was thinking that maybe adding class="heading2 to the line where it says table class="header_links" at the beginning of the table code. If this is possible, I am unsure what syntax to use so that it works correctly. All of the class references are stored in my custom css editor under the Style menu.

<table class="header_links" border="0" cellpadding="0" cellspacing="2" width="100%">
<td style="text-align: left;text-decoration: none;"><a href="http://www.mcran.com/thebennettarchives.php" target="_blank"><h5 class="heading2">The Bennett Archives</h5></a></td>
<td style="text-align: right;"><a href="http://www.mcran.com/it-snippets.php" target="_blank"><h5 class="heading2">The In Transition Archives</h5></a></td>
<td style="text-align: right;"><a href="http://www.mcran.com/ihtsb.php" target="_blank"><h5 class="heading2">I've Heard That Song Before Archives Archives</h5></a></td>
Photo of Randy


  • 643 Posts
  • 8 Reply Likes
  • a bit css puzzled

Posted 8 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Randy,

While I am familiar with CSS and HTML coding, I am definitely not an expert in this. Much of my learning comes from trial and error. What I suggest is just trying it out on a test page. Change the class id and see what happens! Personally, I don't believe I have come across a table class before!

In the meantime, hopefully someone who is an expert CSS guru can help you out. I look forward to hearing other's remarks and increasing my knowledge in this area!
Photo of Randy


  • 643 Posts
  • 8 Reply Likes
Hi Sanja!!

I have been spending a lit of time with one of my test sites learning HTML and CSS. Actually it's a lot of fun and you come to realize how powerful and flexible this stuff is.

I hope that someone will post back who has been using CSS and HTML that can assist me in coding more efficiently.

Thanks again Sanja for getting back to me.