Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

inline navs/menus

Featured Replies

Does anyone know of a site where i can get the css code for basic inline navs/menus

Thanks

Is it just a horizontal menu your after? if so you can adjust this css & html:

 

 

a.inlinenav:link, a.inlinenav:visited, a.inlinenav:hover,a.inlinenav:active

{

float:left; (causes links to line up from the left)

display:block; (if you want to include a background image etc this will help define width & height)

padding:5px;

width:auto;

height:20px;

background: url(images/funkylinkbackground.jpg) ;

}

<a href="" class="inlinenav">example</a>

 

 

some people like to put the links in a list as well, but i don't think its necessary.

 

hope that helps, let us know if you need any more info

 

Stevo

  • Author

thank you very much mate

I will supply my css/div menu complete just in case you or anyone else need something basic.

Not sure how the experts do it, but this way seems to work for me, except the fonts don't seem to be similar in IE7 and FF.

 

 

HTML CODE

<div id="menucontainer"><!-- comment -->
<div id="menu"><!-- Div to contain the menu div ie give it somewhere to be. -->
<div id="menustyle"><!-- div to contain the list). -->
 <ul id="one">
 <li class="two"><a href="index.html" text-decoration="none">Home</a></li>
 <li class="two"><a href="index.html" text-decoration="none">About</a></li>
 <li class="two"><a href="index.html" text-decoration="none">link</a></li>
 <li class="two"><a href="index.html" text-decoration="none">Share</a></li>
 <li class="two"><a href="index.html" text-decoration="none">Whatever</a></li>
 </ul>
</div>
</div>
</div>

 

 

CSS CODE

 

div#menucontainer {
width: 1000px;
margin: 0px;
border: 0px;
padding: 0px;
    }			 

div#menu {
		height:40px;
		width:1000px; 
		border: 0px solid red;
		background-color: black;
		padding-top:8px;
		margin: 0px;
		}

div#menustyle {
	width:560px; 
	height:24px;
	margin-left:360px;
	margin-right:auto;
	background-color: #000000;
	border-top: solid 1px #99cc33;
	border-bottom: solid 1px #99cc33;
	margin-top: 0px;
	}			

ul#one {
	font-family:arial;
	font-size: 90%;
	font-weight: normal;
	color:#ffffff;
	position:relative;
	float:left;
	margin-top:2px;
	list-style-type: none;
	text-decoration: none;
	}	

li.two {
	font-family:arial;
	font-size: 90%;
	font-weight: normal;
	color:#ffffff;
	position:relative;
	float:left;
	margin-top:2px;
	list-style-type: none;
	text-decoration: none;
	float:left;
	padding-left:20px;
	padding-right:30px;
	}			 

 

 

Hope this is useful. If anyone has a correction on the font area of this code please feel free to put in your 2 cents.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.