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 374,031 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 2,870 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: 9304 | Replies: 34
Reply
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

  #22  
Aug 9th, 2004
Thanks for your time...

Here you go.
Attached Files
File Type: zip CSS-Rollover.zip (1.3 KB, 4 views)
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

  #23  
Aug 9th, 2004
<div class="menu"><a href="#">Home</a></div>

This fixed it up. Now, can I say that I want the text to be moved to the right by 10 px and remove the underline, or do I need to use JS for that?

- 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

Re: Help with dynamic menu

  #24  
Aug 9th, 2004
ok it works if you put the href in as I posted while you were preparing your zip.
<!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_current.gif) left no-repeat;
				DISPLAY: block; 
			}
		</STYLE>
	</head>
	<body MS_POSITIONING="GridLayout">
		<div class="menu"><a href="#">Home</a></div>
	</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

  #25  
Aug 9th, 2004
we really will have to stop posting at the same time... lol.

Move text right ten px? to center it or as a block?

.menu a {
text-align: center;
width:150px;
}
for the one, or:
.menu {
position: relative;
right: 10px;
}

for number 2:

text-decoration: none; should help you along.

I'm just off for a run, so see if you can work out what to do with it before I get back...

Cheers
Dave
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

  #26  
Aug 12th, 2004
DaveSW: Help please....

I'm not sure where the issue is, it could be the HTML tags, JavaScript, or CSS, but it needs some tweaking. I've been away from web programming for some years now so I could have something backwards. I have enclosed all needed files and screens shots. Everything works great in IE, however Mozilla and Netscape are another story. The rollover effect is 1 px off on the top and left and the dropdown menu is displaying at the top of the page. Any thoughts would be appreciated.

Thanks in advance...

- Eric
Attached Images
File Type: gif IE_6_0.gif (4.5 KB, 6 views)
File Type: gif MZ_1_7_2.gif (6.4 KB, 6 views)
File Type: gif NS_7_1.gif (6.6 KB, 6 views)
Attached Files
File Type: zip DeriveTech.zip (38.3 KB, 6 views)
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

  #27  
Aug 12th, 2004
I'll take a look after dinner (that's in about 10 mins...)
Can you direct me to the original menu code, or is it a complete DIY job?
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

  #28  
Aug 12th, 2004
DIY... ?

The original is at: http://www.derivetech.us/HTMLPage1.htm

- Thanks
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

  #29  
Aug 12th, 2004
What I meant was, did you make the menu yourself or use one of the menus freely available and adapt it? if you adapted one, which one? Sometimes the code gets messed up by the time you've finished adapting - it does in my case anyway.
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

  #30  
Aug 12th, 2004
Nope it's all new...

I was going to use a menu which I created some years ago, but with CSS I can remove all of images - Now how cool is that!!! So as far as what you see that was created yesterday afternoon.

- Eric
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 11:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC