TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Body + Set text size

Page: 1 Reply
Oct 5th 2002#72312 Report
Member since: Oct 4th 2002
Posts: 6
Is there a way of setting the size of the text viewed on the page in the body tag?:confused:
I have a book on HTML and it says nothing about that.
Reply with Quote Reply
Oct 5th 2002#72318 Report
Member since: Mar 20th 2001
Posts: 3367
You can't do it on the body tag itself, but you can set each text to different sizes, weight, etc.

Eg . <font size="2">Your text on page</font>

Or you can use css. Add this in between your head tags

<style>
body {
color : Black;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 10px;
}

.pagetitle {
color : Grey;
font-size : 12px;
}
</style>

Fpr you pages, anything that you type in between the body tags will be set to the above settings and for individual ones,

You can set to <font class="pagetitle"> Text here </font>

Or

<div class="pagetitle"> Text here </div>


Learn more at http://www.w3schools.com/css/default.asp
I just learn mine by copying other site's css styles, then making my own.
Reply with Quote Reply
Oct 6th 2002#72399 Report
Member since: Jun 30th 2001
Posts: 447
DO NOT use the font tags because they are obsolete even if they work. Use CSS instead. You'll have so much more control over the text and the user will have no way to override your settings.
Reply with Quote Reply
Oct 7th 2002#72645 Report
Member since: Oct 4th 2002
Posts: 6
Thank for the help sidez and yeah I plan on learning css hunkorama. I was looking in the book and I missed something. You can also set the size of the text throughout the page by using the tag
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum