You are here: Re: having a special stylesheet for 800x600 « PHP Programming Language « IT news, forums, messages
Re: having a special stylesheet for 800x600

Posted by Richard on 08/23/07 23:30

"windandwaves" <nfrancken@gmail.com> wrote in message
news:1187910993.925507.262780@x40g2000prg.googlegroups.com...
> Hi Folk
>
> I was wondering if I could do the following:
>
> write a php function that changes a stylesheet from 1024x768 to one
> for 800x600 by literally changing all the widths, heights, font-sizes,
> etc... by the ratio between 800/1024 (i.e. multiplying all values to
> do with height or length with 0.78125)
>
> My question is how I would write a regular expression that replaces as
> follows:
>
> YYYpx to ZZZpx
> YYYem to ZZZem
> YYYpt to ZZZpt
> YYY% to ZZZ%
>
> where YYY is the original numerical value and ZZZ = YYY * 0.78125.
>
> Could you please help me to write this regular expression to test this
> theory?
>
> Thank you
>
> Nicolaas
>

Hi,
I dont understand why you want to do that.
Can you not change the dimensions to relative sizes (%)?

Richard.

 

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

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