Web Hosting Talk







View Full Version : How do you set the front size on a web page?


DreamWeaver
02-06-2001, 02:40 AM
How can i set the front size for text and links on my web page? If someone goes to my page and has text size set to larger or large it screw's up my tables.........I can't remember how to make a page be displayed in medium text size even when the surfer has it set on something different. :emlaugh:

Duster
02-06-2001, 03:04 AM
The best way I know is through the use of an external style sheet. It lets you set many font and color attributes for all pages linked to it.

Here's a link that explains it: http://www.htmlhelp.com/reference/css/style-html.html

ded
02-06-2001, 05:05 PM
in the <FONT> tag, just add in SIZE=" "
so it would be <FONT SIZE="2">

Duster
02-06-2001, 09:50 PM
The font tag as in <font size=2> deals with relative sizes. The problem he is having now is because of that. If someone has their fonts set at large, any font tag size will be large relative to the base font.

A style sheet lets one set the actual point size of the fonts.

[Edited by Duster on 02-06-2001 at 08:53 PM]

DreamWeaver
02-07-2001, 05:34 PM
that's right Duster i used to always use <font size=2> but if someone has the font size in IE set on largest it's useless and it makes my page look like crap.

Do you know if this will work? I made this in dreamweaver it displays the page the way I want it to in IE but after a link has been visited it doesn't hover anymore I can't figure out why but that's not a very big deal.

Netscape seems to ignore the 10pt text size though :(

thanks for the help


a:active { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: #FFFFFF}
a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: #800080}
a:link { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: #0000FF}
a:visited { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: #000000}
.text { font-family: "Comic Sans MS"; font-size: 14pt; font-weight: normal; color: #FFFFFF}
.other { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; color: #FF0000}
.name { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color: #FFFFFF}

Duster
02-07-2001, 08:16 PM
I'm no expert when it comes to style sheets. There are many formatting codes and several ways to accomplish the same look. Just last night I learned how they can change the color for form buttons and other elements, the scroll bar, and other things. Take a look at my site and you'll see the scroll bar effect.

I would suggest reading more on some of the CSS sites. Aside from the one above, some other good sites are:

http://htmlgoodies.earthweb.com/beyond/css.html
http://www.hwg.org/resources/faqs/cssFAQ.html#case
http://www.w3.org/Style/CSS/

The latter has a CSS validator at http://jigsaw.w3.org/css-validator/ that you might find useful.

I use Dreamweaver as well and can tell you of some of the problems regarding Netscape. For instance, when centering text, if the <p> tag appears before the <center> tag, the style sheet formatting will not be applied. Dreamweaver seems to put the <p> tag first, so it requires some editing to reverse the tags.

Netscape also seems not to pick up text color from style sheets, getting it from the page's body codes instead. With a bit of imagination, it is possible to find alternate means of accomplishing some desired results. I've used point sizes a bit and have even gotten Netscape to recognize them under some conditions. For instance, if you go to a site I'm redesigning a bit, at http;//armorbags.com, you'll see most text on the item description pages is 10 pts, even in Netscape. It's done entirely with a style sheet.

I'm glad because style sheets do make it easier, especially as I learn more about what they can do and how to do it. I use them when designing new sites and am converting extant ones, including my own, to them.

It does take study and practice to make full use of them, and I have much of both ahead of me.

DreamWeaver
02-07-2001, 08:53 PM
I tried using 10px and that worked in IE and Netscape 4.7 but then when i tred it in Netscape 6 it didn't work!!

Duster
02-07-2001, 10:56 PM
Why does that not surprise me? I don't even have it loaded anymore and won't unless and until they have a real working version instead of a not ready for prime time bug infested alpha version (even though they consider it beta). I read another article about it, found at http://www.wrox.com/News/viewReview.asp?art_type=new&id=214

It's still on the cyber junkpile as far as I'm concerned.

SI-Chris
02-11-2001, 12:57 AM
I think Netscape inadvertently placed the last nail into their coffin when they released NS6. Among other annoyances, you have to have at least 128 megs of RAM to get acceptible performance. What really burned me up was DHTML menus that I had worked so hard on to make sure they were 100% cross-browser compatible suddenly don't work in Netscape 6. I'm not even going to bother to try and debug them.

The best browser I've used lately is MSIE for the Macintosh.

SickofAds
02-11-2001, 02:37 AM
Netscape certainly bit the big one with NS6. You think that's a side effect of AOL buying them? AOL is apparently not the best in the world at nurturing products. Look what they did to ICQ, for instance.

Chicken
02-11-2001, 06:02 AM
Look what AOL did to AOL for instance :)

::shudder::

TheWingThing
02-11-2001, 06:19 AM
Dreamweaver,
Did you try 10 pt or 10 px? Try 10pt if it works.

Also, in many sites, the layer of the drop down menu disappears on mouseout in IE. But it doesn't disappear automatically in NS on mouseout. Any suggestions?

Chicken ;-) What an insight!

Wing.

DreamWeaver
02-13-2001, 06:09 PM
I started out using pt and that worked fine with IE 5.5 but NS just ignored it but when i use px that worked in IE and NS 4.7 but px didn't work in NS 6.0 or the new one that just came out NS 6.01

When i installed the newest version of AOL 6.0 i noticed that my text size got set to large some how :confused: i don't know if they changed it or not maybe it's another AOL bug but i hate the way AOL tries to take over your computer settings.