#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    110
    Rep Power
    13

    counteract <b> with css


    I am looking for a way to define my html text as <b>, but then counteract it with css, so that it does not appear bold to the user.

    I was thinking something like this but so far it has not worked out.

    /* CSS */
    .text {font-weight: normal;}


    /* HTML */
    <span class=text>
    <b>I want this text to appear normal and not bold.</b>
    </span>


    Thanks in advance for any help.
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    <html>
    <head>
    <title>untitled</title>
    <style type="text/css">

    b .notbold { font-weight: normal; }

    </style>
    </head>
    <body>

    <b><span class="notbold">non-bold class inside &amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; tags</span></b><br>
    <span class="notbold"><b>non-bold class outside &amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; tags</b></span><br>
    <b>&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; tags alone</b><br>

    </body>
    </html>

    Not sure what the point is though...you can also redefine the inherent formatting of a tag in a style sheet.

    readme: http://www.westciv.com/style_master/...heritance.html
    http://www.brainjar.com/css/using/default3.asp
    Last edited by adios; October 27th, 2002 at 09:50 PM.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    110
    Rep Power
    13
    for search engine optimazation, thanks that worked out well...
  6. #4
  7. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16

IMN logo majestic logo threadwatch logo seochat tools logo