6 Replies - 595 Views - Last Post: 30 July 2012 - 07:24 AM

#1 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Nav Bar Issues

Posted 02 July 2012 - 06:48 AM

Hey guys, over this past weekend I was working some css on my webpage and was running into some issues. I wanted to make a cool nav bar but I'm still a beginner in css (web development in general really), so I looked up some tutorials to get me started. Here is one that I found that I liked so tried to do it myself : nav bar. So I made the images in photoshop and what not and copied the code then loaded up my browser, but i didn't get the same thing.

Here is what i got: attachment.Attached Image

Clearly I'm doing something wrong, so i wanted to know if anyone can help me fix this. Here is the css code:

#menu{
	padding:0 0 0 20px;
	margin:0;
	list-style:none;
	height:40px;
	background-image: url(/images/nav.gif);
  background-repeat:no-repeat;
}

#menu li{
	float:left;
}

#menu li a{
	display:block;
	float:left;
	height:40px;
	color:#FFFFFF;
	text-decoration:none;
	font-family:arial,verdana,sans-serif;
	text-align:center;
	padding:0 0 0 10px;
	font-size:11px;
}

#menu li a b{
	float:left;
	display:block;
	padding:0 16px 0 8px;
}

#menu li.current a{
	color:#FFFFFF;
	background:url(/images/glowline.gif);
}

#menu li a:hover{
	color:#de0a0a;
	background: url(/images/glowline.gif);
}

#menu li a em{
	display:block;
	float:left;
	width:30px;
	height:40px;
}

#menu li a em.manage{
	background-image:url(/images/manage.png);
	background-repeat:no-repeat;
	background-position:center center;
}

#menu li a em.permits{
	background-image:url(/images/permit.png);
	background-repeat:no-repeat;
	background-position:center center;
}


#menu li a em.reports{
	background-image:url(/images/reports.png);
	background-repeat:no-repeat;
	background-position:center center;
}

#menu li a em.logout{
	background-image:url(/images/manage.png);
	background-repeat:no-repeat;
	background-position:center center;

}


Is This A Good Question/Topic? 0
  • +

Replies To: Nav Bar Issues

#2 DarenR  Icon User is online

  • D.I.C Lover

Reputation: 200
  • View blog
  • Posts: 1,531
  • Joined: 12-January 10

Re: Nav Bar Issues

Posted 02 July 2012 - 07:05 AM

How do you expect the image to look? Do you have a diagram we can see?
Was This Post Helpful? 0
  • +
  • -

#3 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Re: Nav Bar Issues

Posted 02 July 2012 - 07:16 AM

In the link I posted it shows what it should look like
Was This Post Helpful? 0
  • +
  • -

#4 DarenR  Icon User is online

  • D.I.C Lover

Reputation: 200
  • View blog
  • Posts: 1,531
  • Joined: 12-January 10

Re: Nav Bar Issues

Posted 02 July 2012 - 07:17 AM

I cant clci on external links because I am at work
Was This Post Helpful? 0
  • +
  • -

#5 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Re: Nav Bar Issues

Posted 02 July 2012 - 07:26 AM

Oh sorry, here is what it should like like:

Attached Image
Was This Post Helpful? 0
  • +
  • -

#6 SanmanX  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 11-January 12

Re: Nav Bar Issues

Posted 09 July 2012 - 06:06 AM

can anyone help???
Was This Post Helpful? 0
  • +
  • -

#7 DarenR  Icon User is online

  • D.I.C Lover

Reputation: 200
  • View blog
  • Posts: 1,531
  • Joined: 12-January 10

Re: Nav Bar Issues

Posted 30 July 2012 - 07:24 AM

they could have been using a different css.


at work we use 2.5 but the cool stuff is from css 3. they might be using a css that your dont have.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1