>> Your DOCTYPE triggers quirks mode.
>> http://www.hut.fi/u/hsivonen/doctype.html
[quoted text clipped - 3 lines]
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> Now I git 2 problems.
>
> 1)It's more generic. Since I 'm writting in php using befor DOCTYPE
> <?xml version="1.0" encoding="UTF-8"?> give a PHP error.
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[quoted text clipped - 4 lines]
> one DTD anyway. It has both HTML and XHTML syntax as well as deprecated
> attributes.
I have read quite a lot of articles saying that xHTML is the way to
write. Most (or maybe all?) of the newly created pages (e.g. oswd.org)
are xHTML. But reading this newsgroup lately I found out people here
suggesting HTML 4.01 strict.
So which one is right and/or better?
Have in mind that this wasn't my design. They gave me an already made
site but it was using tables, and most of all it was all messed up
inside the HTML. So I rewrote it.
> That is yet to be seen. The online page is unchanged.
I was testing it on my home computer. Anyway I uploaded it now.
>> Now I git 2 problems.
>>
[quoted text clipped - 3 lines]
> Didn't you read the page I pointed to? It specifically mentions what
> effect the xml prolog has on rendering.
Quite frankly didn't understand this about xml.
>> 2) Now the div#middle which has height 100% isn`t shown as before
>
> height is not a valid table HTML attribute.
I was referring to
#middle{
float:left;
width:150px;
background-color:#F1EBDE;
height:100%;
}
in my CSS.
I want his div to extend until bottom of the page. In quirks mode it
worked. Now?
And another thing I use in one page <table border="1">
Isn't that a deprecated attribute for xHTML? Then why does the
validation succeeds?
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.mavridis-hotel.gr%2
Fprices.php
Thanks a lot for your answers...
Harris
Bergamot - 31 May 2007 15:47 GMT
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[quoted text clipped - 5 lines]
> I have read quite a lot of articles saying that xHTML is the way to
> write.
It is a myth. It is also off topic for this newsgroup. Search the
archives for ciwah and alt.html for more on the subject.
> Have in mind that this wasn't my design.
> I rewrote it.
> ...
> Quite frankly didn't understand this about xml.
It is always a good plan to understand the technology you are attempting
to use before jumping in the deep end. ;)
> #middle{
> height:100%;
> }
>
> I want his div to extend until bottom of the page. In quirks mode it
> worked. Now?
You need to set height:100% on the html element as well as body. This
won't necessarily give you the results you want, though. That height
relates to the viewport, not the document.
Since your column widths are set to the size of the graphics at the top
of the page, you may want to use a background image (repeat-y) on the
body, instead. There are other ways to do it, but this is one of the
more simple ways to get the effect.
BTW, after looking at your CSS more closely I see why the table floats
under the navigation in Seamonkey - your widths don't jive. The 2 left
columns are each 150px wide. The content area is width:60%. In smaller
windows, 60% won't fit next to 300px so it drops under it. The total
adds up to less than 100% in larger windows, too, leaving empty space on
the right.
I suggest dropping both the float and explicit width on #main. Just set
a left margin to at least 300px and let it take whatever remaining space
there is. That may make for a pretty narrow column in smaller windows,
but it should be tolerable for most users.

Signature
Berg