Help with CSS menu

This is a discussion on "Help with CSS menu" within the Web Page Design section. This forum, and the thread "Help with CSS menu are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 22nd, 2007, 09:52
New Member
Join Date: Jun 2007
Location: UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Help with CSS menu

I want to change my menu so that when you hover over the images on the menu, text appears in the box on the left of the images saying what it is.

Link to Page

Below is the CSS code for the menu.

Code: Select all
#menu {
  margin: 0; 
  padding-left: 0px;
  padding-top: 6px; 
  width:599px;
  overflow:hidden;}

#menu li {
  display:inline;
  list-style-type:none; 
  }
#menu li a {
  display:block;
  float:left;
  text-decoration:none; 
  margin:0; 
  }
#menu li a img {
  margin-left:5px;
  border:0;
  float:left;
  }
#menu li a span {
  display:none; 
  }

#menu li a:hover span {
  display:block; 
  cursor:pointer;
  float:left;
  background-color:#D7CAC1;
  border: solid #ffffff 1px;
  height:18px;		
  padding-top:5px;
  padding-right:5px;
  }

#menu .h2 {
		padding-left:5px;
  		color:#000000; 
  		font-size:12px;}

#menu .box {
  		display:block; 
		margin-left: 5px;
 		float:left;
 		background-color:#BFAC9B;
 		border: solid #ffffff 1px;
		height:18px;		
		padding-top:5px;
	 	padding-right:5px;
		padding-left:5px;
 	 	color:#ffffff;}
Below is the HTML code minus some of the menu links.

Code: Select all
					<div id="portfoliomenu">
						<ul id="menu">
							<li>
								<span class="box">
									Use these links to view my work
								</span>
							</li>
							<li>
								<a href="autopond.html">
									<img src="Links/Autopond.gif" alt="Clock" title="Alarm Clock" />
									<span class="h2">
										Auto Pond
									</span>
								</a>
							</li>
						</ul>
I tried position:fixed, for the H2 span but of cause that when if the browser is smaller or made thinner, the span would then be in the wrong position.

Thanks Mike
Reply With Quote

  #2 (permalink)  
Old Jun 25th, 2007, 20:40
New Member
Join Date: Jun 2007
Location: UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with CSS menu

The only way I can think of doing it is to make the hover span come out the the left of the image over where I want it to appear, the only problem with this is that it would take a lot of code as each one would have to be different due to the distance to the left it would have to go.

Anyone got any ideas at all?
Reply With Quote
Reply

Tags
css, div, menu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
css menu csun PHP Forum 4 Aug 1st, 2007 20:37
I have a normal css menu, but want ot add drop down menu to it multichild Web Page Design 7 Jan 9th, 2007 16:07
Add Sub Menu DannyP43 JavaScript Forum 10 Sep 3rd, 2006 19:47
CSS menu cbrams9 Web Page Design 1 Aug 3rd, 2006 15:46
Help with pop-up menu please!!!?? aseriouslyfunkydiva Graphics and 3D 1 Nov 16th, 2005 15:11


All times are GMT. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43