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 November 13th, 2003, 11:37 AM
AberonUser AberonUser is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 AberonUser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy CSS; Change Font Size and Tables

Below is a sample of code that actually works....but when I try to put the <div id="heading"> on some other text in another table...it does not work.

I did add as a test another call to my function and that worked...but I would like to avoid having a different call for each table I have on my page. Can someone give me advise on the easiest way to accomplish changing the text for people...so they can choose the font size that is easiest to read?

Thanks,

C.R.

<style type="text/css">
#content {font-size:12px;}
#heading {font-size:16px;}

A:hover {
FONT-SIZE: 10px; COLOR: #f02d0c; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.readmore {
FONT-SIZE: 10px; COLOR: #495875; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
; cursor: auto}
</style>

<map name="m_client_r3_c9">
<area shape="rect" coords="312,0,323,19" href="#" onClick="ChangeFontSize('heading',18), ChangeFontSize('content',14)" alt="">
<area shape="rect" coords="303,0,312,19" href="#" onClick="ChangeFontSize('heading',16), ChangeFontSize('content',12)" alt="" >
<area shape="rect" coords="289,0,301,19" href="#" onClick="ChangeFontSize('heading',14), ChangeFontSize('content',10)" alt="">
</map>


<td colspan="10" valign="top" bgcolor="#ffffff"><table width="100%" height="85" border="0">
<tr>
<td height="41" colspan="2"><font color="#495875" size="2" face="Franklin Gothic Medium"><div id="heading">Testimonials</div></font></td>
</tr>
<tr>
<td width="8%">&nbsp;</td>
<td width="92%"><font size="2" face="Arial, Helvetica, sans-serif"><div id="content">The
consultants at Aberon IT Services , Inc have been a pleasure to work
with..."</div> </font><a href="Testimonials.htm" class="readmore"><strong>Read More...</strong></a></td>
</tr>
</table></td>

Reply With Quote
  #2  
Old November 13th, 2003, 12:28 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,282 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 16 m 26 sec
Reputation Power: 744
Please put code in &#91code][/code] tags in future posts.
Code:
function ChangeFontSize(el,size)
  {
  document.getElementById(el).style.fontSize = size+'px';
  }
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS; Change Font Size and Tables


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 5 hosted by Hostway