Re: Safari/Firefox compatibility
- From: John Hosking <John@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Mar 2009 20:55:25 +0100
visitme@xxxxxxxx wrote:
I have now done everything possible I can think of to get the site
working but the navigation bar on http://www.stoykova.eu/ still does not work under Firefox.
One thing that's always possible to think of is validation, through which you can often remove syntactic errors which keep your page from working the way you expect. A valid page might still not work the way you *want*, but that's a different problem.)
(X)HTML: http://validator.w3.org/(15 Errors, 1 warning)
CSS: http://jigsaw.w3.org/css-validator/ (1 error, 10 warnings)
If it's any help, here is the style.css file:
Well, we've got the page URL, so we can get the CSS. But what's below is not all of the styling, because some of it is duplicated in CSS embedded in the page. So when you try tweaking the navigation styling, what happens?
------------------------------------------
/*
Author : Christopher Robinson
Email : christopher@xxxxxxxxxx
Website : http://www.edg3.co.uk/
If you're having trouble with somebody else's CSS, why not ask *him*?
#header_inside h3 {
margin:-20px 0 0 -5px;
position:absolute; <- Do you really need this?
width:122px;
}
/* navigation */
#navigation {
left:50%;
margin:0 0 0 -61px;
position:absolute; <- Do you really need this?
width:122px;
}
/*content */
#content {
left:50%;
margin:0 0 0 -400px;
position:absolute; <- Do you really need this?
width:800px; <- This is stretching across and over your nav
}
In general, I don't see the need for all the absolute positioning. One argument against it is the way the page breaks when the user resizes the fonts. The other argument against is that problems crop up so easily (you know, like the ones you're having).
----------------------------------------------------------------
The W3C Markup validator does still show a few errors, although it is
not entirely clear to me why they are classed as errors. Any further
suggestions would be very much appreciated!
Ah, so you *have* thought of validation! ;-)
Well, most should be obvious, I'd have thought, although the messages can be a bit terse. First of all, I would point to the fact that you're attempting to use XHTML (see your doctype), but then serving it as text/html, and using upper-case elements and non-existent attributes.
One oft-heard reasoning for using XHTML is because "it's modern", but you're also using <font> (or, no better, <FONT>), which isn't valid in HTML 4.01, much less XHTML. And if you're using CSS already anyway, let it do the work of your misplaced <font> elements.
Summary: Change to HTML 4.01 strict, and work through the remaining validation errors one by one. See also http://tekrider.net/html/doctype.php and follow the links.
As for why markup errors are errors, you can peruse the source definitions, if you haven't already:
http://www.w3.org/TR/xhtml1/ for XHTML
http://www.w3.org/TR/html401/ for HTML
If you still have questions about a specific error message, bring it on back here.
One last unrelated item I noticed:
Apart from demanding a font-size that's smaller than your users' preferences, your font stack is a bit messed up in the line
font:0.9em Arial, Helvetica, sans-serif, "bitstream vera sans";
If the visitor's UA doesn't have Arial, or Helvetica, or *any* sans-serif font, what good will "bitstream vera sans" do?
HTH. GL.
--
John (Hosking)
Pondering the value of the UIP: http://improve-usenet.org/
.
- References:
- Re: Safari/Firefox compatibility
- From: visitme
- Re: Safari/Firefox compatibility
- Prev by Date: Re: Safari/Firefox compatibility
- Next by Date: Re: How to stretch background image vertically/horizontally to fill the whole browser window?
- Previous by thread: Re: Safari/Firefox compatibility
- Next by thread: Re: Safari/Firefox compatibility
- Index(es):
Relevant Pages
|
Loading