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.

links on header

Featured Replies

hey

 

I have attached my header that i want to use on my site (its working progress)

 

i am working in stages, i have done my code for the time being on one page(but will split later)

 

its here

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

 

<style type="text/css">

*{margin:0; padding:1;}

#body {background:url(img/body-background.png); font:11px "Museo 300", sans-serif; color:#464348;}

#header {width:960px; height:320px; margin:0 auto; background:url(img/logo.png) no-repeat}

#menu {float:left; padding-top:12px; height:0px;width:310px;}

.gn-home a {background-position:68px 270px}

</style>

</head>

 

<body>

<div id="body">

<div id="header">

<ul id="menu">

<li class="gn-home"><a href="#">Home</a></li>

</ul>

</div></div>

</body>

</html>

 

how can i get the link to be on home, about etc.

 

I have tried it but it comes at the top of the page.

 

Can anyone help.

 

Thanks

post-20321-0-73710300-1329771063_thumb.png

Are your menu links images? If so change them to text, and if you still want to use that font, cufon it or have a look at some web fonts - http://www.fontsquirrel.com/

Edited by ash182

In

.gn-home a {background-position:68px 270px}

you can't only have background-position, you have to have the image code even if it's already in a parent style, you need it in the "a" style with the background-position.

At the moment you have background-position:68px 270px} for .gn-home a which means the "a" tag box has to be very wide and high to show anything with those positions. Do you want the background image in each li tag or for the whole menu?

  • Author

ok i have sorted the links out, how would i go about getting the hover to be in same position as the non-hover

 

when you hover over them they drop down a little bit.

 

can anyone let me know

 

thanks

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.