|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
<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 <b></b> tags</span></b><br> <span class="notbold"><b>non-bold class outside <b></b> tags</b></span><br> <b><b></b> 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...nheritance.html http://www.brainjar.com/css/using/default3.asp Last edited by adios : October 27th, 2002 at 09:50 PM. |
|
#3
|
|||
|
|||
|
for search engine optimazation, thanks that worked out well...
|
|
#4
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > counteract <b> with css |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|