Tuesday, December 6, 2011

CSS Issue...

I've redefined both BODY and TD so that text should have the
''small'' attribute.



However, it only seems to work in Firefox. IE ignores the
setting.




Here's the
page.




Here's the
stylesheet.



Any ideas?



Thanks!CSS Issue...
One way would be to use percentages instead...



change this:



font-size: small;

to this

font-size: 80%; (alter to suit)



and your medium to a higher percentage.



Another way would be changing to ems, such as

font-size: 1.5em;



--

Jo













''davidlieb'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message

news:eucpmn$9d7$1@forums.macromedia.com...

%26gt; I've redefined both BODY and TD so that text should have
the ''small''

%26gt; attribute.

%26gt;

%26gt; However, it only seems to work in Firefox. IE ignores
the setting.

%26gt;

%26gt;
http://www.awdsf.com/projects/eq/difference.html

%26gt;

%26gt;
http://www.awdsf.com/projects/eq/stylesheet.css

%26gt;

%26gt; Any ideas?

%26gt;

%26gt; Thanks!

%26gt;





CSS Issue...
On Wed, 28 Mar 2007 04:07:51 +0000 (UTC), ''davidlieb''

%26lt;webforumsuser@macromedia.com%26gt; wrote:



%26gt;I've redefined both BODY and TD so that text should have
the ''small'' attribute.

%26gt;

%26gt; However, it only seems to work in Firefox. IE ignores
the setting.

%26gt;

%26gt; Any ideas?



That's because IE is rendering the page in quirks mode
because you have

no doctype. Change this:



%26lt;html%26gt;



To this:



%26lt;!DOCTYPE HTML PUBLIC ''-//W3C//DTD HTML 4.01
Transitional//EN''

''
http://www.w3.org/TR/html4/loose.dtd''%26gt;

%26lt;html%26gt;



Gary


Thanks Gary,



However when I changed the HTML type to the tag you gave me
Firefox didn't display the text correctly, and some other text went
wacky in IE.



I built the CSS in dreamweaver... I seriously can't figure
out what's going on...



Ugh...
On Fri, 30 Mar 2007 01:23:57 +0000 (UTC), ''davidlieb''

%26lt;webforumsuser@macromedia.com%26gt; wrote:



%26gt;Thanks Gary,



You're welcome.





%26gt; However when I changed the HTML type to the tag you gave
me Firefox didn't

%26gt;display the text correctly, and some other text went
wacky in IE.



That's only because your page was relying on browser bugs to
render

correctly and because not all browsers have the same bugs,
you run into

differences in rendering between browsers. With the doctype I
gave you,

fix the page so it renders correctly in a standards compliant
browser

like Firefox or Opera. After you have done that, you can
address any

remaining IE issues.



Gary

  • sun sunscreen
  • No comments:

    Post a Comment