User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 363,516 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,415 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 9167 | Replies: 34
Reply
Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: Help with dynamic menu

  #11  
Aug 9th, 2004
Why is the tag coded as follows:
background: #ffffff url(background_norm.jpg) left no-repeat;


Instead of this:
background: #ffffff; url("background_norm.jpg"); left no-repeat;
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Help with dynamic menu

  #12  
Aug 9th, 2004
looks like a typo actually. the ";" tells the computer it's the end of the line, so in that case anything after the basic color would be ignored.
Reply With Quote  
Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: Help with dynamic menu

  #13  
Aug 9th, 2004
What about when I pass the image path string, do I need quotes around it?
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Help with dynamic menu

  #14  
Aug 9th, 2004
you can use them if you want to, but you don't need them. However if you're using inline styles (i.e. <span style="..."> then you shouldn't use a double quote around the filename or the computer may get confused and think it's reached the end of the style tag.
Reply With Quote  
Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: Help with dynamic menu

  #15  
Aug 9th, 2004
Awesome, thank you very much for the help.

I'm going to sit down and play for a bit and see how all of this stuff works.

I'll get back with you if I gum it all up.

- Eric
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster
Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: Help with dynamic menu

  #17  
Aug 9th, 2004
All gummed up....

This is not working. Can you see why?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>menu..</title>
		<STYLE type="text/css">
			.menu a {
				background: #ffffff url(images/btn_default.gif) left no-repeat;
				DISPLAY: block; 
			}
			.menu a:hover {
				background: #ffffff url(images/btn_hot.gif) left no-repeat;
				DISPLAY: block; 
			}
			.menu a:active {
				background: #ffffff url(images/btn_default.gif) left no-repeat;
				DISPLAY: block; 
			}
		</STYLE>
	</head>
	<body>
		<a>Home</a>
	</body>
</html>
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Help with dynamic menu

  #18  
Aug 9th, 2004
yes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>menu..</title>
		<STYLE type="text/css">
			.menu a {
				background: #ffffff url(images/btn_default.gif) left no-repeat;
				DISPLAY: block; 
			}
			.menu a:hover {
				background: #ffffff url(images/btn_hot.gif) left no-repeat;
				DISPLAY: block; 
			}
			.menu a:active {
				background: #ffffff url(images/btn_default.gif) left no-repeat;
				DISPLAY: block; 
			}
		</STYLE>
	</head>
	<body>
		<div class="menu"><a>Home</a></div>
	</body>
</html>
Note the div around the a.

Also
.menu a {
}
this means it only applys to "a" elements within an element with a class of menu. Otherwise every single link on the page would have the images in the background...

Does that help?
Reply With Quote  
Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: Help with dynamic menu

  #19  
Aug 9th, 2004
I see...

... Humm, I'm not getting the rollover action.

Any thoughts?
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Help with dynamic menu

  #20  
Aug 9th, 2004
zip your folder and send it to me.

my first thoughts include:
dimensions on the hyperlinks.
image paths?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 4:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC