Help - Search - Members - Calendar
Full Version: Text disappearing in FF, not IE or Locally
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Athena
Hi, I'm a newbie and can tell this site is going to be a tremendous help. Bless ya'll for these forums.

I searched the site but didn't see a solution related to this problem. In FF 3.5.4, the "Order your LSU or Saints tee now!" disappears completely. I checked the source code, and it's physically THERE, but it won't display in the FF browser. It DOES, however, display when I "Preview in Firefox" from my local files (Dreamweaver CS3).

This text shows up in IE7. Looks just the way the client asked. The code on my machine and the code on the server is the same, but I guess FF just doesn't like it? Why is this happening? I appreciate anything you can offer. Thank you...

Website in question

This is the inline coding...
CODE

<body>
<h1>

</h1>

<div id="mainContent"><span class="adcopy">Order your LSU or Saints tee now!</span><br />
<span class="index">Women's: S, M, L • Men's M, L, XL.<br /></span>
<img src="images/tees_05.png" width="555" height="305" /><br />
Don't forget to sign up for Ruby's Denim Club (it's FREE!)<br/>
<span class="index"><a href="http://www.shopruby.net/home.html">Click here to continue to ShopRuby.net</a></span></div>
</body>
</html>


This is the CSS...
CODE

#wrapper{
    margin:0px;
    padding:0px
}

body{
    background-image: url(images/body_bg.jpg);
    background-repeat:repeat-x;
    font-family: "Courier New", Courier, serif;
    color: #FFFFFF;
    font-size:15px;
    line-height: 22px;
    margin: 0px;
    padding: 0px;
    letter-spacing: .05em;
}

h1 {
    background-image: url(images/ftbl_ruby_01.png);
    background-repeat:no-repeat;
    background-position: top center;
    width: 381px;
    height: 199px;    
}


#mainContent{
    font-weight: bold;
    text-align: center;
}

span.adcopy{
    font-size:25px;
    line-height: 35px;
    
}

span.index{
    font-size:15px;
    line-height: 15px;
    letter-spacing: .01em;
    }

a{
    color:#FFFF00;
    text-decoration:none;
    }
    
a: hover{
    color:#FFFFFF;
    text-decoration:underline;
    }
    
a: visited{
    color:#FFFFCC;
    }

pandy
Hmm. It shows in my version of gecko. Strange.

I can tell you why your link colors don't work though.
http://jigsaw.w3.org/css-validator/validat...g=1&lang=en
Space has a special meaning in selectors, so you can't use them at random. It's 'a:hover' and so on, not 'a: hover'. The second would match an element HOVER (if there were any) that's inside an A.
Athena
Well...*beep*. Thank you anyway.

About the a:hover, etc...that's funny, the link colors work fine on my end, but I'll make the change anyway just to be safe. Thank you for the tip!!
pandy
Does the link turn white on hover? You may also want to move a:hover to after the other link rules. See hwere why: http://www.w3.org/TR/CSS2/selector.html#dy...-pseudo-classes.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.