Rendering of <hr> object - Is Konqueror or Firefox at fault?
I designed my website keeping Mozilla SeaMonkey as my testing browser, since of course I did not trust IE. (This was back when I was using Windows full time.) Firefox rendered the same as SeaMonkey, IIRC, since both of them use Gecko anyway. Today I visited my page: http://samvit.org/calendar/astro/wiki.htm#The_Basic_Structure using Konqueror 3.42 on KDE 3.42b (SUSE 10 RC1). I find that the half-length <hr> which I have placed after the "Basic Structure" section before the "Day" section is left-aligned. The same visited using Firefox 1.06 shows the <hr> object centered. Which is the "proper" W3C standard rendering? Or is there no such "proper" rendering and everything just depends on the internal stylesheets that the browser in question uses? P.S: I wonder why the W3C validation service says that no doctype is found for my page even though the very first line is: My pages passed HTML Tidy testing back on Windows, as well as online testing, also on Windows. In Linux, both Firefox and Konq show "no doctype" upon testing using the link at the bottom of all my pages. Can anyone shed light on this?
On Sunday 09 October 2005 12:52, Shriramana Sharma wrote:
The same visited using Firefox 1.06 shows the <hr> object centered.
It is centred as well in Firefox 1.0.7 I see you have a style for hw as: .hw { width: 50% } /* hw = half width */ Perhaps it is up to the browser to decided what alignment to use if one is not specified. I'm not sure what the CSS standard states. So, you may need to explicitly state the alignment you want in that definition of hw. Alvin -- Please reply to the list.
Sunday 09 Oct 2005 21:46 samaye Alvin Beach alekhiit:
Perhaps it is up to the browser to decided what alignment to use if one is not specified. I'm not sure what the CSS standard states.
But my page is valid CSS! (You can test this using the link at the bottom of the page.) If it is mandatory for me to include an alignment, I daresay CSS would have warned me about it!
On Sunday 09 October 2005 11:52, Shriramana Sharma wrote: <snippage>
My pages passed HTML Tidy testing back on Windows, as well as online testing, also on Windows. In Linux, both Firefox and Konq show "no doctype" upon testing using the link at the bottom of all my pages. Can anyone shed light on this? <snippage>
Hi SS, This is not a KDE topic. When you're surfing the Web with Konqueror and every page displays horizontal rules aligned to the left, then Konqueror has a problem and you should bring it to the attention of this list. Otherwise, it should be obvious that this is a web construction question and thus belongs on a web development list or forum. In any event, it looks like you're missing some parts. Here's an XHTML 1.0 Transitional preamble for comparison: "!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" Once you get the doctype cleared up, maybe the left aligned rule will center itself properly. regards, - Carl
participants (3)
-
Alvin Beach
-
Carl Hartung
-
Shriramana Sharma