Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
Created July 4, 2020 10:24
Show Gist options
  • Select an option

  • Save ivanteoh/b76f17137e2299c55a27e845e92ba24a to your computer and use it in GitHub Desktop.

Select an option

Save ivanteoh/b76f17137e2299c55a27e845e92ba24a to your computer and use it in GitHub Desktop.
Creating a Horizontal Menu
<div id="navmenu">
<ul>
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<li><a href="blog">Blog</a></li>
<li><a href="about">About</a></li>
</ul>
</div>
/* Begin NavMenu */
#navmenu
{
font-size:14px;
color:#73A0C5;
font-weight:bold;
padding:6px;
overflow:auto;
height:1%;
clear:both;
}
#navmenu li
{
display: inline;
}
#navmenu a
{
color:#73A0C5;
text-decoration:none;
margin:0 10px;
height:23px;
line-height:23px;
float:left;
display:block;
}
/* End NavMenu */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment