CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2002, 09:06 PM
jahu jahu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 110 jahu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 16 m 17 sec
Reputation Power: 6
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.

Reply With Quote
  #2  
Old October 27th, 2002, 09:42 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
<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 &lt;b&gt;&lt;/b&gt; tags</span></b><br>
<span class="notbold"><b>non-bold class outside &lt;b&gt;&lt;/b&gt; tags</b></span><br>
<b>&lt;b&gt;&lt;/b&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...nheritance.html
http://www.brainjar.com/css/using/default3.asp

Last edited by adios : October 27th, 2002 at 09:50 PM.

Reply With Quote
  #3  
Old October 27th, 2002, 10:10 PM
jahu jahu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 110 jahu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 16 m 17 sec
Reputation Power: 6
for search engine optimazation, thanks that worked out well...

Reply With Quote
  #4  
Old October 27th, 2002, 10:24 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > counteract <b> with css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway