•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,617 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2644 | Replies: 6
![]() |
Hmm... Please excuse my technical knowledge [ Which you will see from my question :evil: ] .
My question is that I created a table on the bottom of my page my page. What I want to do is that I want the font size absolutely fixed... i.e. if someone chooses View > Text Size > Largest ... then the font size must remain the same as I defined [ Verdana , <b> and 10pt ] rather than getting larger than this.
BTW I used CSS Class something like this
.navhead { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
I would appreciate any help in this matter.
My question is that I created a table on the bottom of my page my page. What I want to do is that I want the font size absolutely fixed... i.e. if someone chooses View > Text Size > Largest ... then the font size must remain the same as I defined [ Verdana , <b> and 10pt ] rather than getting larger than this.
BTW I used CSS Class something like this
.navhead { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
I would appreciate any help in this matter.
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
Have you tried .navhead { font-size: 10pt; } ?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
Uhmm... No Luck.
Here's the exact code that I am using -
CSS - .premium-partners { font-size: 10pt ; font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
HTML - <div class="premium-partners">
<table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bordercolorlight="#3E5C92" bordercolordark="#3E5C92">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" align="center">
<tr>
<td width="100%"><b><font face="Verdana" size="2" color="#990000">Our
Premium Partners </font>|<font face="Verdana" size="2" color="#3E5C92"> <script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.pulsetoday.com/adserver/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:3");
document.write ("&exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.pulsetoday.com/adserver/adclick.php?n=a0e155e4' target='_blank'><img src='http://www.pulsetoday.com/adserver/adview.php?what=zone:3&n=a0e155e4' border='0' alt=''></a></noscript>
</font></b></td>
</tr>
</table>
</td>
</tr>
</table> </div>
Am I missing something ?
Here's the exact code that I am using -
CSS - .premium-partners { font-size: 10pt ; font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
HTML - <div class="premium-partners">
<table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" bordercolorlight="#3E5C92" bordercolordark="#3E5C92">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" align="center">
<tr>
<td width="100%"><b><font face="Verdana" size="2" color="#990000">Our
Premium Partners </font>|<font face="Verdana" size="2" color="#3E5C92"> <script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.pulsetoday.com/adserver/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:3");
document.write ("&exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.pulsetoday.com/adserver/adclick.php?n=a0e155e4' target='_blank'><img src='http://www.pulsetoday.com/adserver/adview.php?what=zone:3&n=a0e155e4' border='0' alt=''></a></noscript>
</font></b></td>
</tr>
</table>
</td>
</tr>
</table> </div>
Am I missing something ?
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
Well, first of all get rid of your <font face="Verdana" size="2"> tags
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
you should also use px rather than pt for screen font sizes, as pt is for print media.
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
Keep in mind that pt and px are not directly equivalent - i.e. 8 pt is not the same as 8 px. So don't go and change it and then thing it's wrong because the font changed size.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Auto-adjust web page to browser window (FrontPage 2000) (Site Layout and Usability)
- Selectively Printing only Certain Divs (javascript/css question) (JavaScript / DHTML / AJAX)
Other Threads in the HTML and CSS Forum
- Previous Thread: using animated footage in a web site
- Next Thread: im a bit concerned between html, ect



Linear Mode