Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 04-23-2007, 12:25 PM
Graeme Graeme is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Location: Vancouver, BC
Posts: 120
Graeme is on a distinguished road
Default CSS Gurus- I need some help

I am building a tab navigation and I can get working in IE but in FF it doesn't display the left hand image on active state. I have been staring at this thing for days and I can't figure it out.

Any help would be great

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
p, h1, h2, h3, h4, h5, h6, ul, ol, fieldset, form {
      margin  : 0;
      padding : 0;
  }
  
/*- Global nav-------------------------- */

    #global-nav {
      float:left;
	  width:760px;
      background:#FFF;
      font-size:100%;
      line-height:normal;
      }
    #global-nav ul {
	margin:0;
	padding:10px 0px 0 10px;
	list-style:none;
      }
    #global-nav li {
      display:inline;
      margin:0;
      padding:0 0 0 0;
      }
    #global-nav a {
      float:left;
      background:url("tableftI.gif") no-repeat left top;
      margin:0;
      padding:0 0 0px 4px;
	  font:15px Arial, Helvetica, sans-serif;
	  font-weight:bold;
      text-decoration:none;
      }
    #global-nav a span {
      float:left;
      display:block;
      background:url("tabrightI.gif") no-repeat right top;
      padding:5px 15px 4px 6px;
      color:#012358;
      }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #global-nav a span {float:none;}
    /* End IE5-Mac hack */
    #global-nav a:hover span {
      color:#012358;
	  text-decoration:underline;
      }
    
	#global-nav a#activetab span { 
	  background-position:100% -27px;color: #FFF;  
	  }
	  

#global-nav a:link#activetab, #global-nav a:visited#activetab, { 
      background-position: 0% -27px; 
	  } 
	
</style>
</head>

<body>
<div id="global-nav">
  <ul>
    <li><a id="activetab" href="#" title="Link 1"><span>Home</span></a></li>
    <li><a href="#" title="Link 2"><span>Travel</span></a></li>
    <li><a href="#" title="Longer Link Text"><span>Insurance</span></a></li>
    <li><a href="#" title="Link 7"><span>Your Profile</span></a></li>
  </ul>
</div>
</body>
</html>
Reply With Quote
Old 04-23-2007, 12:39 PM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: CSS Gurus- I need some help

The only difference between your right and left, is the margin, and the display:block part.

Granted, I don't know CSS, but I just compared the two.
__________________
If you're not remembered, you never existed.
Reply With Quote
Old 04-23-2007, 12:49 PM
Graeme Graeme is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Location: Vancouver, BC
Posts: 120
Graeme is on a distinguished road
Default Re: CSS Gurus- I need some help

Thanks, I think it has something to do with the padding between active and regular state but I can't work it out. "Yarghh It's drives me nuts"

I tried switching up margin and display but no luck
Reply With Quote
Old 04-23-2007, 12:54 PM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: CSS Gurus- I need some help

You have a span also
__________________
If you're not remembered, you never existed.
Reply With Quote
Old 04-24-2007, 01:29 PM
Graeme Graeme is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Location: Vancouver, BC
Posts: 120
Graeme is on a distinguished road
Default Re: CSS Gurus- I need some help

Turns out I had an extra "," floating around on one of my attributes.

Thanks for the idea bouncing
Reply With Quote
Old 04-24-2007, 01:31 PM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: CSS Gurus- I need some help

That's one thing I don't like about all this new fangled programming. If you make a mistake, it just won't work. I like C, because if you mess it up, it breaks. You know you made a mistake, and can find out where :0

There is no runline for websites =/
__________________
If you're not remembered, you never existed.
Reply With Quote
Old 04-24-2007, 01:44 PM
Graeme Graeme is offline
Real Estate WebMaster
 
Join Date: Apr 2007
Location: Vancouver, BC
Posts: 120
Graeme is on a distinguished road
Default Re: CSS Gurus- I need some help

Plus you gotta deal with all the cross browser compatibility nonsense.
Reply With Quote
Old 04-24-2007, 01:59 PM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: CSS Gurus- I need some help

Ah, I love C.
__________________
If you're not remembered, you never existed.
Reply With Quote
Old 04-24-2007, 09:01 PM
REW Fergus's Avatar
REW Fergus REW Fergus is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 588
REW Fergus is on a distinguished road
Default Re: CSS Gurus- I need some help

Quote:
Originally Posted by BrandonSternfield View Post
That's one thing I don't like about all this new fangled programming. If you make a mistake, it just won't work. I like C, because if you mess it up, it breaks. You know you made a mistake, and can find out where :0

There is no runline for websites =/
Dunno, I can't really wrap my head around calling HTML markup or CSS "programming". I know what you mean, though, I greatly prefer strongly-typed, compiled languages, such as C to the scripting languages that dominate the Web. I love compile-time exceptions and error catching. It makes debugging so much easier.
__________________
Fergus Gibson
realestatewebmasters.com
Reply With Quote
Old 04-25-2007, 08:20 AM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: CSS Gurus- I need some help

When people are asked what languages they know, HTML and Java are widely accepted answers.

But yes, I like error catching, break lines, etc.
__________________
If you're not remembered, you never existed.
Reply With Quote
Reply


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



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

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


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.