In comp.infosystems.www.authoring.stylesheets, aamirghanchi@yahoo.com
wrote:
> Hi,
>
[quoted text clipped - 10 lines]
> /****************/
> <style>
The above <style> and the </style> must be removed from your
stylesheet. The validator would have told you this.
> span {
> font-size : xx-small;
> }
> div {
> font-size : xx-small;
> }
Consider using percentages instead of keywords for sizing. Some
browsers do not recognize them. For example:
span.small { font-size: 80%; }
> </style>
>
> _________________________________________________
> Test.htm
> <!------------->
You don't want the above line in your HTML.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
[quoted text clipped - 9 lines]
> <div>this text is in DIV</div>
> <span>this text is in SPAN</span>
A <span> is an inline element, should not be a child of <body> but
should be within a <div> or a <p> or other block-level element.
> </body>
> </html>
Post a URL to your problem page.

Signature
-bts
-This space intentionally left blank.
aamirghanchi@yahoo.com - 26 May 2005 15:46 GMT
Hi Beauregard,
>...The validator would have told you this.
the problem was indeed the <style> tags in the css file. Sorry no
validator ...I am using notepad.
>... Some browsers do not recognize them
This web app is targetted for an intranet app and our staff use only
one browser type.
>...You don't want the above line in your HTML
I created this example on the fly. It is a very simple example of a
complex page.
>... <span> is an inline element, should not be a child of <body ...
Thanks for shaing this. Is it in w3c specs
Thanks for your help.
Aamir
Beauregard T. Shagnasty - 26 May 2005 16:00 GMT
In c.i.w.a.s, aamirghanchi@yahoo.com wrote:
> Hi Beauregard,
Good morning.
>> ...The validator would have told you this.
>
> the problem was indeed the <style> tags in the css file. Sorry no
> validator ...I am using notepad.
http://www.htmlhelp.com/tools/csscheck/ Copy your file into the
proper text box. Your choice of editor doesn't matter.
>> ... [size words] Some browsers do not recognize them
>
> This web app is targetted for an intranet app and our staff use
> only one browser type.
Still ... it pays to use good habits all the time. Oh, in future, be
sure to state if your question is not for www.
>> ...You don't want the above line in your HTML
>
> I created this example on the fly. It is a very simple example of a
> complex page.
This is why it is always a good idea to post your problem page on a
server somewhere, so we can see a working example, with some sort of
content.
<sniprest>

Signature
-bts
-This space intentionally left blank.
> div {
> font-size : xx-small;
>
> <link rel="stylesheet" type="text/css" href="HighResolution.css" />
I find it rather ironic that you are using such a teensy font-size for a
"high resolution" stylesheet. I take it you don't want your visitors to
be able to read it, eh? ;)

Signature
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
aamirghanchi@yahoo.com - 26 May 2005 15:47 GMT
Thanks for correction. Should have been LowResolution.css