![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I've designed a website with using any tables, everything is postionned using css, content goes into divs. However I've noticed that the website looks different across browsers. I would like to know how to invoid this without having to include a CSS for every browser. Here's a link to the page http://www.myexersize.com/biography/ I am using absolute positionning. I am thinking of changing that to relative. The website displays quite nicely on IE6 Please advise |
#3
| |||
| |||
|
|
I've designed a website with using any tables, everything is postionned using css, content goes into divs. |
|
I am using absolute positionning. I am thinking of changing that to relative. |
#4
| |||
| |||
|
|
C A Upsdell <""cupsdellXXX\"@-@- (AT) XXXupsdell (DOT) com"> wrote: Your DOCTYPE is not on line 1. So? |
#5
| |||
| |||
|
|
C A Upsdell <""cupsdellXXX\"@-@- (AT) XXXupsdell (DOT) com"> wrote: Your DOCTYPE is not on line 1. So? |
#6
| |||
| |||
|
|
Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: Your DOCTYPE is not on line 1. So? Probably it should be. There is no such requirement. |
#7
| |||
| |||
|
|
Els <els.aNOSPAM (AT) tiscali (DOT) nl> wrote: David Håsäther wrote: Big Bill <kruse (AT) cityscape (DOT) co.uk> wrote: Your DOCTYPE is not on line 1. So? Probably it should be. There is no such requirement. It does have to be the first line of code in the document though. Add anything else before it, and it's the same as not having a doctype at all. I don't know where you got that from. Comment declarations, processing instructions and whitespace can all appear before the doctype declaration, and so can the XML declaration if you're using XML. This declaration really needs to be first in the document though. The fact that some browsers may not be able to sniff the doctype if certain things appear before it, is not relevant. |
#8
| |||
| |||
|
|
Els <els.aNOSPAM (AT) tiscali (DOT) nl> wrote: I don't know where you got that from. Comment declarations, processing instructions and whitespace can all appear before the doctype declaration, and so can the XML declaration if you're using XML. This declaration really needs to be first in the document though. The fact that some browsers may not be able to sniff the doctype if certain things appear before it, is not relevant. Why is that not relevant? I was under the impression that web pages were to be displayed in browsers, which by the doctype will decide how to render it. I was under the impression that this discussion was about a requirement for the doctype declaration to be on the first line, not some clueless behavior performed by tag slurpers. |
#9
| |||
| |||
|
|
I was under the impression that this discussion was about a requirement for the doctype declaration to be on the first line, not some clueless behavior performed by tag slurpers. |
#10
| |||
| |||
|
|
David Håsäther wrote: I was under the impression that this discussion was about a requirement for the doctype declaration to be on the first line, not some clueless behavior performed by tag slurpers. Depends on what you mean by 'requirement'. The specs allow whitespaces prior to the DOCTYPE, so the specs do not _require_ that the DOCTYPE be on line 1. However, we all know that real-world user agents violate the specs in unpleasant ways, and we have a _requirement_ to build sites for real-world user agents (i.e. clueless tag slurpers), so we have to take into account their idiosyncracies. Having said that, I must confess that I do not remember which user agents violate this particular aspect of the specs: sometime in my past I ran across at least one browser that did have such a problem, so I made it a rule always to put the DOCTYPE on line 1; however, it is _possible_ that this problem is not extant in today's real-world browsers. Nonetheless, I felt it prudent to suggest that the OP move the DOCTYPE to line 1, and also make the page valid, in order to eliminate the possibility that either the position of the DOCTYPE or the non-validity of the page was causing the problem for which the OP was seeking help. |
![]() |
| Thread Tools | |
| Display Modes | |
| |