Forum Moderators: open
The flexibility of allowing the device to determine the correct font via the FONT tag, means far less dreaded 'pinch' and 'zoom'
Additionally, the FONT tag is always faster than CSS declared fonts. Fonts are always inline and render faster than CSS applied fonts. Additionally, css is usually external with require another file load or a cache if modified check.
I bet this page could be redesigned to use half the bandwidth it currently uses, by employing modern web design techniques. And by modern, I mean techniques people were using 8 years ago.
Granted browsers have come a long ways in standarization, but with the explosion of small screens (eg: phones), the FONT tag is making a bit of a comeback with mobile designers. The flexibility of allowing the device to determine the correct font via the FONT tag, means far less dreaded 'pinch' and 'zoom'. Having to zoom the screen is slowly becoming a known hazard to mobile programming and the font tag size (+ and -) suggestions tend to be more flexible and user friendly than CSS dictates.
Can you change the "16px" setting? It's an odd size for a sans-serif font; it makes the whole box look a little bigger and more emphatic than ordinary type. Is that the intention of this area? It seems redundant if you're also going to put in a heading.
Are you saying that the 16px setting is not big as you would expect it to be? I looked and the default font size for the heading box is 18px, not 16px but the h1 tag, I believe, is not defined in the CSS stylesheet. If this is the size, are you saying that I don’t need to put an h1 tag on my webpage now? Just type the words that I want to put in the heading without using an h1 tag? Or are you thinking that I don’t have to change the size, but that I should put the h1 tag in and use font-size:100%?
Font-family and font-size can both be applied to divs. So if it is genuinely impossible for you to use a stylesheet, then you can wrap all your paragraphs in a single div.
Would I style the divs so I wouldn’t have to style every p style tag with font-family and font-size and save on coding in the process? By styling the divs, would all the paragraphs inside of it take the styling specifications of the div?
But, again, think carefully about whether you want to force a size or font-family for the body text. Does your template say anything about size of body text? Can you change it? If it has to say something, you can say "font-size: inherit" and it will be just as if you didn't mention a size at all.
I don’t want to force a size or font family for the body text but if I want to change what I see when I start typing in the body text, I think that I would have to make some specifications? If I don’t make any specifications, I am not sure how I would be able to make changes?
The body text in my template has a default of 12px, so if I just start typing in my body text box, it would be Arial 12px. I feel that this is too small so I am trying to figure out what I should do so that I have a larger font-size in my body text. I can change it to another number (e.g. making it 16px in a div using inline CSS). If I say font-size:inherit and just start typing in my body text box, would the text be 12px? If that is the case, should I use a percentage such as 133% for font-size so the text is 16px instead of 12px and not use font-size: inherit?
Microsoft Word is a word processor. Are you talking about an HTML Preview function?
I am copying and pasting the text from the webpage to Microsoft Word the word processor and the text looks larger there (the size that I want it to be) than it does on the webpage. I also looked at it in HTML preview function and the size that the text appears in Microsoft Word is the size that it is appearing in the preview. That is how I want it to appear on my webpage, but at the moment, it isn’t.
Please don't use the HTML <font> property at all, for any reason. It is heavily deprecated and there are always alternatives. This goes double for values like "size='3'" or "large" where the exact proportion is up to the browser. If you use percentages, the proportions will be almost identical everywhere. Sometimes there will be tiny hiccups based on the user's physical setup, but these are most noticeable at very small sizes.
I will switch from using the font tag to using CSS but I have seen the same situation with CSS with regard to the size of the body text being the browser’s default size and not the size that I specified. Maybe this is due to the browser’s default size for text being shown if a specific font size (using CSS or HTML) is mentioned. When you say this goes double, do you mean “The same thing applies for….”? I think that you are saying it is better to use percentages (CSS).
Maybe this is due to the browser’s default size for text being shown if a specific font size (using CSS or HTML) is mentioned.
Talk about what you want your page to do, who your target audience is, how important it is (or isn't) to keep control of site appearance. That kind of thing.
I've said from the beginning that you're better off not setting an absolute font size at all. Just relative sizes for the parts you want to be bigger, like headers or emphatic text.
<html>
<head>
</head>
<body>
<h1>Header 1</h1>
<p>Plain paragraph here</p>
<h2>Header 2</h2>
<p>Plain paragraph here</p>
<h3>Header 3</h3>
<p>Plain paragraph here</p>
<p>... and a second one so you can see the spacing</p>
<h4>Header 4</h4>
<p>Plain paragraph here</p>
<h5>Header 5</h5>
<p>Plain paragraph here</p>
<h6>Header 6</h6>
<p>Plain paragraph here</p>
<hr>
<table>
<tr>
<td>First row, first table cell</td>
<td>First row, second table cell</td>
</tr>
<tr>
<td>Second row, first table cell</td>
<td>Second row, second table cell, with extra text so you can see how it behaves when the browser has to wrap things around and make decisions about alignment</td>
</tr>
</table>
</body>
</html> h1 {text-align: left; font-size: 120%; font-weight: bold;} /* original style */
/* h1 {text-align: left; font-size: 120%; font-weight: bold;} */
h1 {text-align: left; font-size: 120%; font-weight: bold;} h1 {text-align: center; font-size: 200%; font-weight: normal; font-style: italic;} <style type = "text/css">
h1, h2, h3, h4, h5, h6 {font-size: 100%;}
</style> body {font-size: 200%;} table {font-size: inherit;} h1, h2, h3, h4, h5, h6 {font-weight: normal; font-family: sans-serif; margin-top: 2em; margin-bottom: 1em;}
h1 {font-size: 250%;}
h2 {font-size: 200%;}
h3 {font-size: 150%;}
h4 {font-size: 120%;}
h5 {font-size: 100%;}
h6 {font-size: 85%;}
table {font-size: inherit; border-collapse: separate; border-spacing: .25em; border: 1px solid black;}
td {text-align: left; vertical-align: top; padding: .5em; border: 1px solid black;}
p {margin-top: .5em; margin-bottom: 0;}
[edited by: bill at 2:07 am (utc) on Mar 31, 2013]
[edit reason] no links to your sites [/edit]
You are not going to change or delete this. Not yet. Instead, copy and paste the rule-- make sure you get the whole thing, down to the closing } brace-- and wrap one of them in comment tags so it looks like this:
/* original style */
/* h1 {text-align: left; font-size: 120%; font-weight: bold;} */
h1 {text-align: left; font-size: 120%; font-weight: bold;}
Anything inside those /* tags */ will be invisible to the CSS parser-- but it's perfectly visible to you. If you're working in a friendly editor, it may even show up in a different color to remind you. If you now change the working CSS
h1 {text-align: center; font-size: 200%; font-weight: normal; font-style: italic;}
and then decide you've made a dreadful mistake, all you have to do is copy from the original into your active CSS. Takes all the scariness away doesn't it?
h1, h2, h3, h4, h5, h6 {font-weight: normal; font-family: sans-serif; margin-top: 2em; margin-bottom: 1em;}
h1 {font-size: 250%;}
h2 {font-size: 200%;}
h3 {font-size: 150%;}
h4 {font-size: 120%;}
h5 {font-size: 100%;}
h6 {font-size: 85%;}
table {font-size: inherit; border-collapse: separate; border-spacing: .25em; border: 1px solid black;}
td {text-align: left; vertical-align: top; padding: .5em; border: 1px solid black;}
p {margin-top: .5em; margin-bottom: 0;}
Notice all those measurements in ems? An em always means, uh, your own em. That is, it's determined by the current font size.