Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Font size tag :)


Font size tag :)

Reply
  #1 (permalink)  
Old 02-19-04, 10:06 AM
Peef Peef is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Font size tag :)

Hi!

I have a problem. How can I define font size in PHP page?

Becouse standard <font size="xx"> </font> doesn`t work...

And font size=+2 font doesn`t work either

What`s the tag for font size changing?
Reply With Quote
  #2 (permalink)  
Old 02-19-04, 11:12 AM
wheezy360's Avatar
wheezy360 wheezy360 is offline
Newbie Coder
 
Join Date: Nov 2003
Location: Toronto, ON
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Peef
Hi!

I have a problem. How can I define font size in PHP page?

Becouse standard <font size="xx"> </font> doesn`t work...

And font size=+2 font doesn`t work either

What`s the tag for font size changing?

The <font> tag is deprecated. Try using CSS.

<span style="font-size: 14px;"> Text To Change </span>
Reply With Quote
  #3 (permalink)  
Old 02-19-04, 12:39 PM
Peef Peef is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thx, I will try.

And another question. Is it possible to specify font size for all page? (that font will be in same size in whole page?)

Last edited by Peef; 02-19-04 at 01:01 PM.
Reply With Quote
  #4 (permalink)  
Old 02-19-04, 01:10 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
yes it is possible, add the following code in <HEAD> of your page ..
Code:
<style type="text/CSS">
<!--
body  {
 font-family: Tahoma; font-size: 12px; text-align: left;
}
-->
</style>
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #5 (permalink)  
Old 02-19-04, 01:12 PM
Peef Peef is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the help
Reply With Quote
  #6 (permalink)  
Old 02-19-04, 01:20 PM
Peef Peef is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
hmmmm...
But when I added this code:

<span style="font-size: 14px;">

it returned me an error:

Parse error: parse error, expecting `','' or `';''

it returns me always arror when I have "" in tags...why? what is wrong?
Reply With Quote
  #7 (permalink)  
Old 02-19-04, 01:21 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Moved to CSS/HTML Forum....
Reply With Quote
  #8 (permalink)  
Old 08-15-08, 10:04 AM
techexpressinc techexpressinc is offline
New Member
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Font changing, new pop-window,

I been having the same problem. PHP seems to be limited on what tags you can use. I think it is we are trying javascript/html within a PHP secession. One other battle I am having within PHP is linking to a pop-up or off to another web page.

A PHP expert can tell us for sure.

Another newbie to PHP. Russ
Reply With Quote
  #9 (permalink)  
Old 08-15-08, 06:27 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Quote:
Originally Posted by techexpressinc View Post
PHP seems to be limited on what tags you can use.
PHP has actually absolutely nothing to do with this. Post your code and we'll take a look at it. You must be doing something else wrong...
Reply With Quote
  #10 (permalink)  
Old 08-16-08, 06:55 PM
leeprice2006 leeprice2006 is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
i'm guessing that they are doing something like

PHP Code:

echo "<span style="font-size14px;">" 

if so you are getting the error because you have " in the echo
try

PHP Code:

echo "<span style=\"font-size: 14px;\">" 

or

PHP Code:

echo "<span style='font-size: 14px;'>" 

either will work
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TINYBLOB tables size lordmerlin PHP 2 01-14-04 08:03 PM
Reducing video size and conversion iKwak General HotScripts Site Discussion 1 12-16-03 01:34 AM
font script seans9 Script Requests 7 09-10-03 12:15 PM
Display full size image from thumb without page reloading borgo JavaScript 5 08-12-03 02:30 AM
Upload file type and size limiter! Arctic ASP 1 08-02-03 07:06 PM


All times are GMT -5. The time now is 09:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.