Can a list of styles :
<style type="text/css">
body {
margin: 20px;
background: #9A823A;
color: #4C401C;
text-align: center;
padding: 0;
}
#outer {
text-align:left;
border:1px solid #000000;
width:740px;
/* height:440px;
overflow:hidden; */
margin:auto;
}
</style>
be embeded at the top of the body of a document?
of can styles only be in the HEAD?
JohnWhy would you want to put them in the document body anyway, not that you can: <!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/present/styles.html#h-14.2.3Originally">http://www.w3.org/TR/html4/present/styl ... Originally</a><!-- m --> posted by Vladdy
Why would you want to put them in the document body anyway, not that you can: <!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/present/styles.html#h-14.2.3">http://www.w3.org/TR/html4/present/styles.html#h-14.2.3</a><!-- m -->
I want to embed a list of styles into the 'body' section of the HTML - to style an item listing on EBAY.
They control the HEAD of the document, so I have no way to put anything there.
Johnhmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly. It also does not seem to matter where the style element is inserted within the body.
So, since the HTML blocks you are using on e-bay have a limited lifespan and you are not concerned about validation, I would go ahead and put style element wherever you please.
Thanks for helping in acquiring this piece of information Originally posted by Vladdy
hmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly. It also does not seem to matter where the style element is inserted within the body.
So, since the HTML blocks you are using on e-bay have a limited lifespan and you are not concerned about validation, I would go ahead and put style element wherever you please.
Thanks for helping in acquiring this piece of information
seems to work in Moz too.Moz == GeckoOriginally posted by ray326
Moz == Gecko
really? on my desktop the icon says 'mozilla firefox'. Nothin about any lizards...Mozilla, Firebird, Firefox, Netscape 6+ and Camino all use the Gecko Runtime Environment to render Web pages. That's why Moz == Geckriginally posted by Vladdy
hmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly.
Not legal -- that kills me. It's appalling that the metaphor of criminality has come to be applied to the use of privately-owned property like a computer. Every time I see the "illegal operation" alert on my computer I feel like using a sledge hammer to make kitty litter out of it.And it does not work at all in NETCRAP...at least not version 7
JohnCan we see the code? The reason I'm skeptical about not getting it to work in NS7 is because NS 7 was based on the 1.0 version of the Gecko Runtime Environment. So, it should work in NS7 if it works in Mozilla... should Originally posted by toicontien
Can we see the code? The reason I'm skeptical about not getting it to work in NS7 is because NS 7 was based on the 1.0 version of the Gecko Runtime Environment. So, it should work in NS7 if it works in Mozilla... should
Try HERE (<!-- m --><a class="postlink" href="http://stegenga.net/ebay/beths-listing.html">http://stegenga.net/ebay/beths-listing.html</a><!-- m -->)
It works in Firefox and IE5/6.
It breaks in Netcrap. Netcrap seems to ADD a <head> statement infront of the STYLE block, at least when I look at the 'view source' option....
John
<style type="text/css">
body {
margin: 20px;
background: #9A823A;
color: #4C401C;
text-align: center;
padding: 0;
}
#outer {
text-align:left;
border:1px solid #000000;
width:740px;
/* height:440px;
overflow:hidden; */
margin:auto;
}
</style>
be embeded at the top of the body of a document?
of can styles only be in the HEAD?
JohnWhy would you want to put them in the document body anyway, not that you can: <!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/present/styles.html#h-14.2.3Originally">http://www.w3.org/TR/html4/present/styl ... Originally</a><!-- m --> posted by Vladdy
Why would you want to put them in the document body anyway, not that you can: <!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/present/styles.html#h-14.2.3">http://www.w3.org/TR/html4/present/styles.html#h-14.2.3</a><!-- m -->
I want to embed a list of styles into the 'body' section of the HTML - to style an item listing on EBAY.
They control the HEAD of the document, so I have no way to put anything there.
Johnhmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly. It also does not seem to matter where the style element is inserted within the body.
So, since the HTML blocks you are using on e-bay have a limited lifespan and you are not concerned about validation, I would go ahead and put style element wherever you please.
Thanks for helping in acquiring this piece of information Originally posted by Vladdy
hmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly. It also does not seem to matter where the style element is inserted within the body.
So, since the HTML blocks you are using on e-bay have a limited lifespan and you are not concerned about validation, I would go ahead and put style element wherever you please.
Thanks for helping in acquiring this piece of information
seems to work in Moz too.Moz == GeckoOriginally posted by ray326
Moz == Gecko
really? on my desktop the icon says 'mozilla firefox'. Nothin about any lizards...Mozilla, Firebird, Firefox, Netscape 6+ and Camino all use the Gecko Runtime Environment to render Web pages. That's why Moz == Geckriginally posted by Vladdy
hmm.... that is a good one [reason]
While it is not legal, it seems like both IE and Gecko recognize the style element found in the document body and apply declaration within it correctly.
Not legal -- that kills me. It's appalling that the metaphor of criminality has come to be applied to the use of privately-owned property like a computer. Every time I see the "illegal operation" alert on my computer I feel like using a sledge hammer to make kitty litter out of it.And it does not work at all in NETCRAP...at least not version 7
JohnCan we see the code? The reason I'm skeptical about not getting it to work in NS7 is because NS 7 was based on the 1.0 version of the Gecko Runtime Environment. So, it should work in NS7 if it works in Mozilla... should Originally posted by toicontien
Can we see the code? The reason I'm skeptical about not getting it to work in NS7 is because NS 7 was based on the 1.0 version of the Gecko Runtime Environment. So, it should work in NS7 if it works in Mozilla... should
Try HERE (<!-- m --><a class="postlink" href="http://stegenga.net/ebay/beths-listing.html">http://stegenga.net/ebay/beths-listing.html</a><!-- m -->)
It works in Firefox and IE5/6.
It breaks in Netcrap. Netcrap seems to ADD a <head> statement infront of the STYLE block, at least when I look at the 'view source' option....
John