Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

font size relative to "top level" font size
 

Achim Domma (SyynX Solutions GmbH)




quote this post edit post

IP Loged report this post

Old Post  12-14-05 - 11:24 AM  
Hi,

is there a possibility to set the font size to a percent value of the
"top level" font size?

For example:

The font size of the body might be 100% and I have a div which should
have a font size of 80% of this value, independent of other tags around
this div:

<body style='font-size: 12pt'>
<div style='font-size: 90%'>
<div style='???'>text with a size of 80% of 12pt, independent
of the 90% of the parent div</div>
</div>
</body>

regards,
Achim


Post Follow-Up to this message ]
Re: font size relative to "top level" font size
 

Stan Brown




quote this post edit post

IP Loged report this post

Old Post  12-15-05 - 01:00 AM  
Wed, 14 Dec 2005 12:16:30 +0100 from Achim Domma (SyynX Solutions
GmbH) <achim.domma@syynx.de>:
> is there a possibility to set the font size to a percent value of the
> "top level" font size?
>
> For example:
>
> The font size of the body might be 100% and I have a div which should
> have a font size of 80% of this value, independent of other tags around
> this div:

Nope -- no way. It would be useful in some circumstances, but each
element inherits its base size for %age calculations from its parent.
http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size

CSS does have absolute font size like "medium", but you don't want to
use them because you have no idea what size the user has set up in
the browser.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator:      http://validator.w3.org/
CSS 2.1 spec:   http://www.w3.org/TR/CSS21/
validator:      http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/20...e_wont_help_you


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 02:18 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top