OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Firefox not applying certain css elements

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> Firefox not applying certain css elements
Page: [1]
 
chrlogan

 

Posts: 5
Joined: 5/1/2009
Status: offline

 
Firefox not applying certain css elements - 5/1/2009 15:07:11   
Hi all,

Have a quick question! A site I'm working on is displaying the way I want it to in IE and not Firefox (there's a first time for everything!). The site is located here:

http://www.myrelationshipresolution.com/

More specifically, I'm just referring to the header -- the title doesn't display in white nor does menu bar appear in purple (although the hover works).

Page 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">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>


<center>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="leftheader" width="15%"></td>
<td class="rightheader" width="*" valign="bottom"><h1>Welcome to the Relationship Resolution Centre, Inc.</h1></td>
</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr class="rowhead">
<td class="menubarleft" width="15%"><font color="white">.</font></td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Coaching</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Mediation</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Financial Divorce Analysis</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Relationship Building</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Workplace Bullying</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">About Us</td>
<td class="menubar" width="12%" valign="bottom" onmouseover="this.style.backgroundColor='#C97979'" onmouseout="this.style.backgroundColor='#997979'">Contact Us</td>
</tr>
</table>

</center>
</html>


CSS:

h1 {
color: white;
}

h2 {
color: #997979;
}

td.leftheader {
background-image: url('RRC_finalOttawa.png');
background-repeat: no-repeat;
margin: 0px auto; position: relative;
}

td.rightheader {
background: repeat-x url('testbar.png');
margin: 0px auto; position: relative;
height: 125px;
text-align: center;
padding-bottom:12px;
}

td.menubar {
background-color: #997979;
color: white;
text-align: center;
}

td.footer {
background: repeat-x url('botbar.png'); color: #FFF;
margin: 0px auto; position: relative;
width: 764px; height: 85px;
z-index: 1;
text-align: center;
color:black;
font-family: arial, "lucida console", san-serif;
font-size: 12px;
}


Thanks for any help!


< Message edited by chrlogan -- 5/1/2009 15:20:57 >
Tailslide

 

Posts: 6691
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 15:22:18   
Can you check the link as I can't get at the actual page itself (difficult to see from snippets).

You're not building a new site with frames are you... ? Bad idea. Use includes instead if you want to save on repetitive coding.

Those javascript mouseovers are terrible - get rid of them! (Get rid of the table layout too - tables are only for tabular data).

Use CSS for the menu styles instead - more modern, more reliable.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to chrlogan)
chrlogan

 

Posts: 5
Joined: 5/1/2009
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 15:48:03   
http://myrelationshipresolution.com/

I was under the impression that IE could not work properly with something like td.whatever:hover hence I went with the JS mouseovers. What is a better solution?

EDIT: Seems to be working fine now in Firefox. /shrug

Let me follow up with:

Yes, I'm building a site with frames. I realize that I probably should have gone with /includes but the site is very small and not code heavy so I'm not too worried about it for now.

(in reply to Tailslide)
TexasWebDevelopers

 

Posts: 720
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 15:54:15   
There are a zillion CSS menu web sites out there - some of the best are Stu Nichol's site and A List Apart. But here is one for the novice coder-a nifty little CSS menu builder that (mostly) produces compliant code:
http://www.cssmenumaker.com/
As a side note on frames...we find frames useful in certain intranet settings but never for an internet site. They are inherently insecure; the framesets can easily be broken; the content of the framed pages cannot be indexed by the search engines; and they are counter-intuitive for navigation (no back button, for instance).

_____________________________

:)

Follow us on TWITTER

(in reply to chrlogan)
Tailslide

 

Posts: 6691
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 16:19:21   
IE6 and under works fine with :hover as long as there's a link in there (which there should be as it's a menu). If there's no link present then you can add the whatever:hover script to force it to behave as wanted.

But as a menu is a list of links - the hover problem doesn't apply. IE7 and onwards does hover a little better.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to TexasWebDevelopers)
chrlogan

 

Posts: 5
Joined: 5/1/2009
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 16:24:51   

That's a good point -- adding the hover to the link as opposed to the td.


One quick question then, since I'm going to reworking this using includes here -- http://myrelationshipresolution.com/index_test.php

Currently have a table set up which includes the header, sidemenu, body and footer for the index page. If I click a link on the sidemenu, I suppose there isn't an equivalent to say a targetted link for a frame. That is, I'd have to have the table with the includes on every single page?


Thanks for all the help. :)



(in reply to Tailslide)
Tailslide

 

Posts: 6691
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Firefox not applying certain css elements - 5/1/2009 16:45:37   
The page would be made up of the various includes (e.g. sidebar, nav, footer, header - whatever) The only stuff that would change page to page is the actual content and stuff like the title tag etc - depending how you set it up. The actual page that the browser would see would have the code making those bits up. In effect the same on every page although because you're using includes you only have to edit those in one place - the include file.

What appears in the include depends on the type of include you use. I use PHP includes which just have the snippet of code to be included. Same goes for SSIs. I believe (but never used) FP includes have a load more code in them as well as the actual snippet.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to chrlogan)
chrlogan

 

Posts: 5
Joined: 5/1/2009
Status: offline

 
RE: Firefox not applying certain css elements - 5/7/2009 18:28:42   
Hey, new question --

http://www.myrelationshipresolution.com/coaching.php

The sidepanel is being affected by <br> and <p> in the body text. The layout for coaching.php --

<tr>
<td>
<?php include "header.php"; ?>
</td>
</tr>
</table>

<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%">
<?php include "sidepanel.php"; ?>
</td>
<td width="80%" valign="top" align="left" class="main">

text is here with <br> and <p>!

</td>
</tr>
</table>

<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php include "footer.php"; ?>
</td>
</tr>
</table>


How can I:
a) alleviate the issue in the short term without redesign, if possible
b) design a better layout ?

Cheers!
-Chris

(in reply to Tailslide)
Tailslide

 

Posts: 6691
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Firefox not applying certain css elements - 5/8/2009 2:28:24   
You need to correct the coding errors first. You've got document heads floating round within the page - this will cause errors. Get your code validated at the W3C validator then see what problems you've still got.

As far as better designing - don't use tables for layout, that's not what they're for. There's nothing particular wrong with the look of the site - just the coding errors and the tables.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to chrlogan)
chrlogan

 

Posts: 5
Joined: 5/1/2009
Status: offline

 
RE: Firefox not applying certain css elements - 5/8/2009 10:29:00   
I don't know what to use instead of tables to achieve a columnar setup. /blush

< Message edited by chrlogan -- 5/8/2009 10:35:12 >

(in reply to Tailslide)
d a v e

 

Posts: 4342
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: Firefox not applying certain css elements - 5/8/2009 10:59:05   
something like the 2 Column (Right Menu) Liquid Layout: Pixels | Ems on this page
http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-widths

_____________________________

David Prescott
Gekko web design

(in reply to chrlogan)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> Firefox not applying certain css elements
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts