# Spacing hyperlinks horizontally

**URL:** <https://forum.code.org/t/spacing-hyperlinks-horizontally/33970>\
**Category:** CS Discoveries\
**Tags:** csd-unit-2\
**Created:** [January 4, 2021, 1:43am UTC](https://forum.code.org/t/spacing-hyperlinks-horizontally/33970 "2021-01-04T01:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah.dudley](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@sarah.dudley](https://forum.code.org/u/sarah.dudley)\
**Post date:** [January 4, 2021, 1:43am UTC](https://forum.code.org/t/spacing-hyperlinks-horizontally/33970/1 "2021-01-04T01:43:04Z")

</div>

Is there a way to space out hyperlinks horizontally on the same line? (Hopefully that makes sense.) The student is wanting the hyperlinks on the same line but not wanting them to appear bunched together. We are not sure how to space them out.

Thank you

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [January 4, 2021, 11:41pm UTC](https://forum.code.org/t/spacing-hyperlinks-horizontally/33970/2 "2021-01-04T23:41:11Z")

</div>

@sarah.dudley

Sounds like they want to create a navigation bar … If you look at this post that was previously posted in the forum, you can see an example of how to do this.

My example uses padding in the css rules. It is a little beyond the scope of CSD’s unit 2, but as my other response shows, there are some resources to show students how to do something like this at [w3schools.com](http://w3schools.com)

> [@Unit 2 Center Navigation Bar](https://forum.code.org/t/unit-2-center-navigation-bar/31671/2):
>
> Hello again, @nichole.shelton I think I read somewhere that you can do anything with css (but of course some things are more difficult to do than others). I’m also not an expert, but I have taught myself to make some basic navbars. [W3Schools has some good starter lessons here](https://www.w3schools.com/css/css_navbar.asp) Again, this is a little outside the scope of unit 2, and I would definitely start with W3Schools or a similar tutorial site, [but here’s an example I made.](https://codeprojects.org/1pVNKEX6opznuSQkNpKk1YYbDJtoa00KY6HPOnu987s) If you click on “view code” at the bottom of the page, you can …

Hope this helps!

Mike
