HTML is moving toward
CSS, a mechanism for specifying styles.
We do not support the full complexity of this yet, but we do support a subset.
Eventually we will support style sheets (again), but for the moment we support
the case where the user puts in a <SPAN STYLE=spec>
tag
or a <DIV STYLE=spec>
tag, and nothing else, we also only
support a subset of what may be placed inside the spec.
changing the text color:
<SPAN STYLE="color: red">yellow text</SPAN>
red text
changing the font size:
<SPAN STYLE="font-size: larger">big text</SPAN>
normal text
<SPAN STYLE="font-size: 18pt">18 point
text</SPAN>
normal
<SPAN STYLE="font-size: 200%">very big
text</SPAN>
normal
changing the font style:
<SPAN STYLE="font-style: italic">italic
text</SPAN>
normal
changing the font weight:
<SPAN STYLE="font-weight: bold">bold text</SPAN>
normal
changing the font family:
<SPAN STYLE="font-family: helvetica, san-serif">san-serif
text</SPAN>
normal
changing the all the font information:
<SPAN STYLE="font: bold oblique 14pt/16pt helvetica,
san-serif">san-serif text</SPAN>
normal
changing several things at once:
<SPAN STYLE="color: red; font-size: 1.5em">big red
text</SPAN>
normal
the <DIV>
tag allows some other things:
text-indent
text-align
left-margin
top-margin
margin
<P> Normal state <DIV STYLE="margin-left: 1em; color: red; text-indent: 1em"> Well this is fun, or funny asdf asdfsadf asdfasdf asdf asdf asdfas dfasdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf as dfa sdf asdf <P> Next Para <H1> Header </H1> <DIV STYLE="margin-left: 1em; margin-top: 2em; color: green"> Nested thingy asdf asdf asd fasd fasd fasdf asdfasdfasdf asdf asdf asdf asdf asdf asdf asdf as dfas dfasdf <DIV STYLE="text-align: center"> <P>Should be centered. </DIV> </DIV> <P> In outermost DIV </DIV> <P> Normal state again
Next Para
In outermost DIV
Normal state again
The CSS spec is far more complex than this, but this is what we support.
We don't even support the line-height
property.
file: /Techref/language/html/HELP/refer/style.htm, 5KB, , updated: 1997/3/23 17:30, local time: 2024/11/27 07:16,
3.133.139.164:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/language/html/HELP/refer/style.htm"> Style Sheets</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.