Forum Moderators: not2easy
.default_text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #000000; line-height: 20px}
.defaulttextbold {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #000000; line-height: 20px; font-weight: bold; }
Thanks for any help.
I tried your suggestion but whenever I save a style, I can't have spaces (is that right?).
So I tried "default_textb" instead and that just bolded (if that's a word) the text and not in the font I'm after....
html, body, td, p, li {font-weight:bold} the text shrinks in size and doesn't look like the original text.How exactly do you mean shrink? Large amounts of bold text will look very different from normal text; you may need to readjust your font sizes to compensate. If you provide a short snippet of your HTML code, we might be able to identify some other style which might be interfering or overriding your other preferences.
whenever I save a style, I can't have spaces
The example jetboy_70 gave was to select for text inside a <b> tag inside of another element with the class "default_text" assigned, for instance
<style type="text/css">
b {font-weight:normal}
p.default_text b {font-weight:bold}
</style>
[...]
<p><b>This text is not bold</b></p>
<p class="default_text"><b>This text is bold</b>.</p>
[edited by: choster at 2:57 pm (utc) on Feb. 4, 2004]
Re coding, I am indeed using Dreamweaver but when I work on the style sheet, I'm hand coding.
Here's a snippet using the default_text and defaulttextbold things I posted above (I'm testing the look with non-CSS fonts and there's a def difference in look between the CSS bold and the normal bold):
<span class="default_text">default text<br></span>
<span class="defaulttextbold">default text bold</span>
<br>
<strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">default text bold not</font></strong></p>
<span class="defaulttextbold">
blah blah - default text bold</span> <p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">not default text bold - verdana 2 bold </font></strong></p>