Webmaster Forum

Lionsanime Directory   Improve your ranking, submit to directories   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2007, 10:45 PM   #1 (permalink)
Inactive
 
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
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-30-2007, 02:31 AM   #2 (permalink)
v7n Mentor
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,157
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
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
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 10:24 AM   #3 (permalink)
Inactive
 
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)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,909
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
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> ...
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 03:24 PM   #5 (permalink)
Inactive
 
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)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,909
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
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;
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2007, 11:16 PM   #7 (permalink)
Inactive
 
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)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,909
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Then I suggest you to verify your page structure and your stylesheet file again, because there you'll find your problem.
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-02-2007, 06:05 AM   #9 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 392
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
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?
__________________
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
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,157
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
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
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > 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

vB 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 03:45 AM
FireFox Extension: Open highlighted URLS in tabs? chicgeek Computers & Internet 12 07-27-2006 04:24 AM
Can a 'swap image' graphic contain image mapping? lizbeth Coding Forum 2 04-22-2004 02:32 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:24 AM.
© Copyright 2008 V7 Inc