Gazing into my crystal ball I observed John Smith <jsmith (AT) company (DOT) com>
writing in news:hbcs0m$280$1 (AT) aioe (DOT) org:
Quote:
How do I put "font-size: 22px" and "text-align: center" in a
single tag? |
Font sizes should not be expressed in pixels as some popular browsers
cannot resize them. Use ems or percentages.
Quote:
If I put both of them in <span>, alignment doesn't work. If I put
"text-align: center" in <div> and the other in <span> fontsize
doesn't work. If they are both in <div>, alignment doesn't work.
In short, I can't have them both work in one tag.
Any solution? Thanks. |
Hmmm, this looks like it might be a heading element that is being badly
cobbled together. Of course, I don't have my crystal ball today, so
without a URL, it's impossible to say.
What you might want is a heading element that you can style accordingly.
I would suggest an external stylesheet, or if you must, the style
element in the head of your document. There is no need to use inline
style for this.
h1 {font-size:140%; text-align:center;}
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share