You are here: Re: new CSS tutorial « HTML « IT news, forums, messages
Re: new CSS tutorial

Posted by jokla on 08/06/06 09:52

I guess you used px for the font size so it'll look in all browsers the
same. I know that Opera will look a little bit different if % are used.
There is a cross-browser trick to make this work.

You have to write the following to the top of your css file.

html { font-size: 62.5%; }

This will reset the default font size to 10px for all browsers. I think
63px will do it aswell but for some IE's it's needed to write 62.5%.
Now you can go and work with % , where 100% = 10px , 110% = 11px and so
on. . . well, things should be this way.

I've done the same mistake with the px, but now I'm slowly switching
over to this magic trick with %

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация