T
Trevor L.
I have these classes in an external SS
..75pc , .sz10 {font-size: 10px ; } /* 10px=75% */
..50pc , .sz8 {font-size: 8px ; } /* 8px=50% */
I have this HTML code in a frame named "index_main"
<a
href="rss-reader.html?URI=http://abc.net.au/news/syndicate/topstoriesrss.xml"
target="index_main"
class="whitebg 75pc">
<img src="images/display/abc_banner_logo.gif"
alt="" width="40" height="24"/>ABC News RSS</a>
The text 'ABC News RSS' has a white background, but is not 10px
I proved this by changing the code to:
<a
href="rss-reader.html?URI=http://abc.net.au/news/syndicate/topstoriesrss.xml"
target="index_main"
class="whitebg 75pc"
onmouseover="toolTip('ABC News RSS',this)">
<span style="font-size:10px">
<img src="images/display/abc_banner_logo.gif"
alt="" width="40" height="24"/>ABC News RSS</a></span>
and the text was definitely smaller.
Is there some reason this wouldn't work as it was originally - without the
<span>. (It does in IE6)
I thought that a classname beginning with a numeral may the problem. This is
why I added sz10 as a duplicate class. So I tried
class="whitebg sz10" and this didn't work.
I then thought that perhaps FF's version of HTML/CSS (whatever) doesn't like
putting two classes together.
But changing the code to class="sz10 whitebg" made no difference, so clearly
the class "whitebg" is getting picked up
Also, this code gives blue underline text with white background but not a
smaller font:
<form id="eMailer" name="eMailer" action="">
<span class="whitebg 75pc blue uline" style="cursor:hand">
<a onclick="postform()">
As HTML
</a>........
</span>
</form>
Why is this happening?
I want to try to get all styles out of HTML and into CSS, so the fact that
it works with an in-line font doesn't help that much.
..75pc , .sz10 {font-size: 10px ; } /* 10px=75% */
..50pc , .sz8 {font-size: 8px ; } /* 8px=50% */
I have this HTML code in a frame named "index_main"
<a
href="rss-reader.html?URI=http://abc.net.au/news/syndicate/topstoriesrss.xml"
target="index_main"
class="whitebg 75pc">
<img src="images/display/abc_banner_logo.gif"
alt="" width="40" height="24"/>ABC News RSS</a>
The text 'ABC News RSS' has a white background, but is not 10px
I proved this by changing the code to:
<a
href="rss-reader.html?URI=http://abc.net.au/news/syndicate/topstoriesrss.xml"
target="index_main"
class="whitebg 75pc"
onmouseover="toolTip('ABC News RSS',this)">
<span style="font-size:10px">
<img src="images/display/abc_banner_logo.gif"
alt="" width="40" height="24"/>ABC News RSS</a></span>
and the text was definitely smaller.
Is there some reason this wouldn't work as it was originally - without the
<span>. (It does in IE6)
I thought that a classname beginning with a numeral may the problem. This is
why I added sz10 as a duplicate class. So I tried
class="whitebg sz10" and this didn't work.
I then thought that perhaps FF's version of HTML/CSS (whatever) doesn't like
putting two classes together.
But changing the code to class="sz10 whitebg" made no difference, so clearly
the class "whitebg" is getting picked up
Also, this code gives blue underline text with white background but not a
smaller font:
<form id="eMailer" name="eMailer" action="">
<span class="whitebg 75pc blue uline" style="cursor:hand">
<a onclick="postform()">
As HTML
</a>........
</span>
</form>
Why is this happening?
I want to try to get all styles out of HTML and into CSS, so the fact that
it works with an in-line font doesn't help that much.