Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 08-17-2008, 02:13 PM Trouble with Tabs
Junior Talker

Posts: 3
Trades: 0
Hey all, new here =]

I'm a PHP dev at heart and I was given this site to work on but the CSS was so bad that I rewrote the entire thing myself with no knowledge at all, I just kinda learnt as I went along. Anyway I've managed to get everything just how I want it, the last thing however is driving me crazy and it's all the stands between the design and the finish line.

http://www.urbanglobe.co.uk/design/

The tabs seem to work fine in Safari, but in nothing else. Also when I change font size the tabs seem to move a few px up or down, is there a way to like fix how tall they are, then align the bottom of the tabs with the bottom of the top gray bar, the top gray bar is a repeated image and therefore will not change size.

Thanks, Dan.
iDemonix is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2008, 04:58 PM Re: Trouble with Tabs
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Tabs are working just fine in Firefox. They are not working in IE6 - no big surprise there.

You have to get rid of this for IE
Quote:
<?xml version="1.0" encoding="utf-8"?>
With that appearing at the top of your document, IE will render your code in QUIRKS mode, and that's a real mess.

You have invalidly nested code on your navigation here:
Quote:
<a href="/"><li id="nav-home">Home</li></a>
<a href="/"><li id="nav-register">Register</li></a>
<a href="/"><li id="nav-community">Community</li></a> <a href="/"><li id="nav-purchase">Purchase</li></a>
<a href="/"><li id="nav-help">Help</li></a>
The links need to be INSIDE the <li> tags, not outside them:
<li id="nav-home"><a href="/">Home</a></li>

Fix those things - and your myriad other code errors and see where that leaves you.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-17-2008, 07:46 PM Re: Trouble with Tabs
Junior Talker

Posts: 3
Trades: 0
I just checked in FireFox, it's not working properly. The bottom of the tabs shouldn't be in the white, they should be sitting along the top of it like a tab. I removed the XML tag at the top, but I need the invalid a href things to make the entire tab act as a link rather than just the text.

Still got the problem, any one else have a solution?
iDemonix is offline
Reply With Quote
View Public Profile
 
Old 08-17-2008, 08:02 PM Re: Trouble with Tabs
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You don't need invalid markup to make the tab work as you wanted. It may take some slight re-tooling your code, but tabs are done with valid code every day.

Well, since I don't have Safari, it was impossible for me to see what you actually wanted, and you didn't specify what was wrong. It's not unusual for people to deliberately place a nav bar between two colors.

All you have to do is change the top margin on #nav to pull it up :

#nav ul {style.css (line 20)
display:block;
font-family:Verdana,sans-serif;
font-size:x-small;
list-style-image:none;
list-style-positionutside;
list-style-type:none;
margin:100px 0pt 0pt;
padding:0pt;
}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-18-2008, 06:15 AM Re: Trouble with Tabs
Junior Talker

Posts: 3
Trades: 0
Hey, sorry for not explaining my problem properly, I used your code and although it's fine in Safari it's still problematic in FireFox, here's two pics;

Safari


FireFox


The margin works fine at 112px in Safari, but it needs to be less than that for it to work in FireFox which leads me to believe something else is making FireFox push it further =S
iDemonix is offline
Reply With Quote
View Public Profile
 
Old 08-18-2008, 12:50 PM Re: Trouble with Tabs
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Are you strictly on a Mac ?? MY Firefox, on a PC doesn't do that with the code I gave you - 100Px top margin. There is nothing else pushing it down.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Trouble with Tabs
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71369 seconds with 12 queries