Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2007, 10:45 PM   #1 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
can't get image tabs to appear with css.

this is my site. i can't get my image navigational tabs to appear at all on the site. I need for it to appear below the logo and above the red masthead. this is my first time trying to experiment with image based tabs rather than text so I really don't know what I"m doing here. Any help would appreciated.

Code:
<div id="navmenu"> <ul id="navmenu"> <li class="home"><a href="#"></a></li> <li class="ec"><a href="#"></a></li> <li class="shipping"><a href="#"></a></li> <li class="other"><a href="/#"></a></li> <li class="boxes"><a href="#"></a></li> <li class="contact"><a href="#"></a></li> </ul> </div>
Code:
#navmenu { float: left; position: relative; height: 50px; z-index: 3; clear: both; } #navmenu ul { float: left; list-style-type: none; display: inline; position: absolute; top: 43px; left: 60px; } #navmenu ul li { float: left; padding: 0; margin: 0; display: inline; } #navmenu ul li a { display: block; height: 30px; } #navmenu ul li a.home { background: transparent url(test/drop2/images/tabs/static/home.jpg) no-repeat scroll left top; height: 27px; } #navmenu ul li a.ec { background: transparent url(test/drop2/images/tabs/static/ec.jpg) no-repeat scroll left top; height: 27px; width: 66px; }
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 02:31 AM   #2 (permalink)
v7n Mentor
 
Tomassi's Avatar
 
Join Date: 01-26-06
Location: Amsterdam
Posts: 2,497
iTrader: 0 / 0%
Latest Blog:
None

Tomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest order
Send a message via ICQ to Tomassi
You should use: background-image:url(your image); etc.

and I don't think the path to the image is correct
__________________
I still got me a signature to fill
Tomassi is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 10:24 AM   #3 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
I am using background-image. I just happened to lump them all into one line of code rather than seperate it. The path is definitely correct.
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 03:20 PM   #4 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Code:
<div id="navmenu"> <ul id="navmenu"> <li class="home"><a href="#"></a></li> <li class="ec"><a href="#"></a></li> <li class="shipping"><a href="#"></a></li> <li class="other"><a href="/#"></a></li> <li class="boxes"><a href="#"></a></li> <li class="contact"><a href="#"></a></li> </ul> </div>
I see your links are empty, have you tried to add some content to your links? something like:
Code:
... <li class="home"><a href="#">Menu Item 1</a></li> ...
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 03:24 PM   #5 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
Unfortunately, it doesn't do much but help you show where my text is. I put it up anyway.

Quote:
Originally Posted by Costin Trifan View Post
Code:
<div id="navmenu"> <ul id="navmenu"> <li class="home"><a href="#"></a></li> <li class="ec"><a href="#"></a></li> <li class="shipping"><a href="#"></a></li> <li class="other"><a href="/#"></a></li> <li class="boxes"><a href="#"></a></li> <li class="contact"><a href="#"></a></li> </ul> </div>
I see your links are empty, have you tried to add some content to your links? something like:
Code:
... <li class="home"><a href="#">Menu Item 1</a></li> ...
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 03:29 PM   #6 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
I can see them, but they're displayed as block.
Try to remove the float attribute from the UL and LI and add(or leave) only the "display: inline" attribute set on the LI.

btw, you have set the same ID for the DIV and UL -> navmenu.
that's not a good practice...

oh, and set the width to 100% to the navmenu DIV, and also the margin: 0; padding: 0;
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 11:16 PM   #7 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
nope- none of that works either.
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-01-2007, 03:10 PM   #8 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Then I suggest you to verify your page structure and your stylesheet file again, because there you'll find your problem.
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-02-2007, 06:05 AM   #9 (permalink)
v7n Mentor
 
Boogle's Avatar
 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
You have position:relative and position:absolute used for elements next/within each other... I don't think that's good... try to remove the positioning attributes?
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-03-2007, 12:56 AM   #10 (permalink)
v7n Mentor
 
Tomassi's Avatar
 
Join Date: 01-26-06
Location: Amsterdam
Posts: 2,497
iTrader: 0 / 0%
Latest Blog:
None

Tomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest order
Send a message via ICQ to Tomassi
http://apatalk.com/test/drop2/homepa...tatic/home.jpg

I'm not 100% positive but I think thats the path you give to your background image..
__________________
I still got me a signature to fill
Tomassi is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


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

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
Problem with Tabs after Wordpress Upgrade swiftmed Blogging Forum 1 03-20-2008 04:45 AM
FireFox Extension: Open highlighted URLS in tabs? chicgeek Tech Support Forum 12 07-27-2006 05:24 AM
Can a 'swap image' graphic contain image mapping? lizbeth Coding Forum 2 04-22-2004 03:32 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:03 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.