|
Posted by Sally Thompson on 08/19/06 11:43
On Sat, 19 Aug 2006 12:17:56 +0100, bim_bom wrote
(in article <ec6s17$mh3$1@news.onet.pl>):
>
> U¿ytkownik "bim_bom" <julekmen@go2.pl> napisa³ w wiadomo¶ci
> news:ec6r5r$kdd$1@news.onet.pl...
>> Hi,
>> I have a HTML file with text with different font sizes, colors, etc. -
>> just a normal html file.
>>
>> Is there a way to add some code at the beginnng of the file, that all the
>> later texts are shown in the same size?
>>
>> For example I have code:
>> <h1>AAA</h1>
>> <h2>BBB</h2>
>> <font size=20>CCC</font>
>>
>> Will it be able to change,that all these texts show in the same size in IE
>> 6?
>
> I created something like this:
>
> <STYLE TYPE="text/css">
>
> H1 { font-size: 12px }
> H2 { font-size: 12px }
> H3 { font-size: 12px }
>
> FONT { font-size:12px;}
>
> </STYLE>
>
> It works quite well :)
I'm not sure why you would want h1, h2 and h3 all the same size. Don't you
want to differentiate between them? Even so, better to use percent for font
sizes than px; that way your font size will change in proportion to the font
size chosen by the user, whatever the browser.
If you *do* want them the same, this would be better:
<style type="text/css">
body {font-size: 100%;}
h1, h2, h3 {font-size: 120%} (flavour to suit)
</style>
or for example:
<style type="text/css">
body {font-size: 100%;}
h1 {font-size: 140%;}
h2 {font-size: 130%;}
h3 {font-size: 120%;}
</style>
--
Sally in Shropshire, UK
bed and breakfast near Ludlow: http://www.stonybrook-ludlow.co.uk
Burne-Jones/William Morris window in Shropshire church:
http://www.whitton-stmarys.org.uk
Navigation:
[Reply to this message]
|