# Assign a class to specific table?

**URL:** <https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008>\
**Category:** support\
**Created:** [November 6, 2023, 7:14pm UTC](https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008 "2023-11-06T19:14:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![branky\_nubnuz](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@branky\_nubnuz](https://discourse.gohugo.io/u/branky_nubnuz)\
**Post date:** [November 6, 2023, 7:14pm UTC](https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008/1 "2023-11-06T19:14:10Z")

</div>

Hi all. I’m making a series of markdown pages in `content` meant to be experienced one after the other or selected from a table of contents. I’d like to embed links to the previous page, ToC and next page at the bottom of each page.

However, just having the links vertically stacked atop one another looks really bad. I’d like to have all three links on one line, with the the previous page link against the left side of `main`, the next page link against the right side of `main` and the ToC link in the middle between the two.

A `table` row seemed like a natural fit for this (though I’m willing to take suggestions otherwise), but many of my pages already have tables. I can’t style informational tables and navigational tables with the same CSS. How can I use markdown to assign a specific class to the navigational table, so that I can style it separately?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [November 6, 2023, 7:19pm UTC](https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008/2 "2023-11-06T19:19:30Z")

</div>

You can apply classes to most block level elements in markdown using markdown attributes. This [article](https://www.veriphor.com/articles/markdown-attributes/) might be helpful.

---

<div class="post-metadata">

**Author:** ![branky\_nubnuz](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@branky\_nubnuz](https://discourse.gohugo.io/u/branky_nubnuz)\
**Post date:** [November 6, 2023, 9:03pm UTC](https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008/3 "2023-11-06T21:03:24Z")

</div>

Thanks @jmooring, that’s exactly what I needed.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [November 8, 2023, 9:03pm UTC](https://discourse.gohugo.io/t/assign-a-class-to-specific-table/47008/4 "2023-11-08T21:03:54Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
