![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||||
| |||||||
|
|
I've got a document that StarOffice converted into HTML, |
|
and I'm trying to clean up the cuft that it generated. I put together some basic styles, and tied using them: the results are puzzling. The style definition is: STYLE !-- @page { size: 8.5in 11in; margin: 0.79in } div.res dl dt { font-weight: bold; line-height: 3; text-decoration: underline; } div.res dl dd { font-size: medium; } div.res ul li { font: "Courier, serif"; } |
|
.lead { font-weight: bold; line-height: 3; text-decoration: underline; text-indent: 0; } .emp { font-weight: bolder; font-size: 1.2em; } -- /STYLE |
|
The StarOffice-generated HTML made extensive use of font tags, which I am trying to eliminate. |
|
div class=res p class="lead" RECENT EXPERIENCE: /p p span class="emp">name</span>, address (dates): /P UL TYPE=DISC LI>text</li LI><P ><FONT FACE="Courier, serif">text LI><P ><FONT FACE="Courier, serif">text</FONT></P LI><P ><FONT FACE="Courier, serif">text</P LI><P ><FONT FACE="Courier, serif">text</FONT></P LI><P ><FONT FACE="Courier, serif">text</FONT></P LI><P ><FONT FACE="Courier, serif">text</FONT></P /UL Superficially it appear as though the text in the first li element should be rendered the same as the text in the other li elements, but it isn't. |
|
Also, if I try to include either of font: "Courier, serif"; font-family: "Courier, serif"; in my definition of .emp, then it no longer renders in bold. Please advise. |
|
Note, this is not XHTML, so the missing ending tags (</font>, </p>) should be legitimate. |
#3
| |||||||
| |||||||
|
|
This means use a font called 'Courier, serif'. |
|
Note that if you use the font shorthand you must specify the size as well as the family. |
|
Not rendered the same in what respect? |
|
What happens when you correct the CSS syntax as outlined above? |
|
BTW <span class="emp"> makes me think that the purpose is emphasis? |
|
The end tag for font is not optional in HTML 4. |
|
The end tag for p is optional in HTML 4. |
#4
| |||
| |||
|
|
Steve Pugh <steve (AT) pugh (DOT) net> said: BTW <span class="emp"> makes me think that the purpose is emphasis? Indirectly; class=emp is for names of employers, and I did specify emphasis. Which raises a stle question. Which is preferable?: p span class="emp">name</span>, address (dates): /P |
|
p span class="emp">name</span>, address>address</address> (dates): /P p address><span class="emp">name</span>, address</address> (dates): /P |
![]() |
| Thread Tools | |
| Display Modes | |
| |