Advertisements

In article <eei7oi$i1p$>,
Rob Powell <> wrote:
> hi all
>
> i was wondering
>
> is there a way to give a CSS class a position screen-width-relative? ie,
> can i have a class having some properties like "horizontal positioning =
> (screen.width / 2) - 350"... ?
>
> thanks in advance
> rob

You can position a box in a browser with CSS. But you need more
to instruct for the monitor itself. You may have some success
with javascript.

Advertisements

Rob Powell wrote:
> hi all
>
> i was wondering
>
> is there a way to give a CSS class a position screen-width-relative? ie,
> can i have a class having some properties like "horizontal positioning =
> (screen.width / 2) - 350"... ?
>
> thanks in advance
> rob

In article <eejarl$i0o$1$>,
David Dorward <> wrote:
> Rob Powell wrote:
> > is there a way to give a CSS class a position screen-width-relative?
>
> Why? That's just going to be horrible for anyone who doesn't run their
> browser maximised.

Yes, I was wondering about this. (JL's answer to OP seemed
intriguingly clever).

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!