NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page CSS ul / Link Problem

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 03-19-2009, 05:13 AM THREAD STARTER               #1 (permalink)
www.bpdir.com
 
dezinerite's Avatar
Join Date: Jul 2007
Posts: 3,055
dezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond repute
 



Wildlife Breast Cancer Ethan Allen Fund Tsunami Relief AIDS/HIV

Help! CSS ul / Link Problem


I'm relatively new to CSS...

I'm trying to create a sidebar menu using <ul id="menu"> instead of <div id="menu"> and even if the images do show up on both FF & IE, the <a href="link"> for each button won't work (like if I move my cursor over the buttons, nothing happens). Can someone help me identify the problem? Thanks.

The HTML part looks a bit like this (I'm just replacing the id names):

Code:
<ul id="menu">
<li id="home"><a href="home.html"></a></li>
<li id="about"><a href="about.html"></a></li>
<li id="contact"><a href="contact.html"></a></li>
</ul>
The CSS part looks a bit like this:
????: NamePros.com http://www.namepros.com/web-design-discussion/568244-css-ul-link-problem.html

Code:
#home, #home a {
		margin: 0 auto;
		padding: 0px;
		border: none;
		text-indent: -10000px;
		background-image: url(http://wac.658e.edgecastcdn.net/80658E/namepros/images/home.png);
		background-repeat: no-repeat;
		height: 50px;
		width: 300px;
}

#home a:hover {
		background-image: url(http://wac.658e.edgecastcdn.net/80658E/namepros/images/home_on.png);
}
dezinerite is offline   Reply With Quote
Old 03-19-2009, 08:41 AM   #2 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,963
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
There's nothing within your <a> tags. Perhaps you could try putting some whitespace.
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline   Reply With Quote
Old 03-19-2009, 10:41 AM   #3 (permalink)
Senior Member
 
Epic's Avatar
Join Date: Sep 2005
Posts: 3,767
Epic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond reputeEpic has a reputation beyond repute
 



Add "display: block;" to your CSS for #home a.

Maybe...
Epic is offline   Reply With Quote
Old 03-19-2009, 12:10 PM   #4 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute
 



as kate said, you'll need something between your <a> tags. you should probably put an image there (home.png maybe?). if you go through the thought process, what you want to link is the image home.png itself, unless you plan to put text on top of the image. otherwise, the image isn't really a background; it's the foreground!
__________________
- shockie
shockie is offline   Reply With Quote
Old 03-19-2009, 02:59 PM THREAD STARTER               #5 (permalink)
www.bpdir.com
 
dezinerite's Avatar
Join Date: Jul 2007
Posts: 3,055
dezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond repute
 



Wildlife Breast Cancer Ethan Allen Fund Tsunami Relief AIDS/HIV
Originally Posted by Epic
Add "display: block;" to your CSS for #home a.

Maybe...
It worked. Thanks so much!!!
dezinerite is offline   Reply With Quote
Reply


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


 
All times are GMT -7. The time now is 07:55 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger