Help - Search - Members - Calendar
Full Version: browser size problem
HTMLHelp Forums > Web Authoring > General Web Design
coolvibes
can the equation below work in html
you see my problems a cur when the users browsers are set over the default site resolution so instead of trying to sort the masses i want to simply tell my html code if the browser is set higher then to had 150 pixels onto the layer .this would solve all my problems and is so simple anyone please trans code this into html for me.
If it can be done if not why will simple basic not work and how can code like this be added to html/browsers?

Kind regards
craig



Ps=picture space
Df=Default browser

Ps=820
If browser >= to df then ps=ps+150
#Layer4 {
position:absolute;
left:pspx;
top:45px;
width:154px;
height:154px;
z-index:4;}

pandy
"to default browser"???

Guess you could do something like that with JavaScript, but you can't with HTML. With HTML you can make a page that adopts to the resolution or at least not breaks to pieces if the window size is larger or smaller than the optimal size.
coolvibes
Are you saying html is a dying code and java script will take over or that you can only do simple code in java if the latter then i will need to study .any place i should start or is my method of code re-engineering going to get me there quicker.

kind regards
Darin McGrew
QUOTE
Are you saying html is a dying code
No. Some people thought XHTML would replace HTML, but that didn't happen.

Please see the FAQ entry For what screen size should I write?
pandy
I'm saying HTML can't *do* anything at all that resembles programming and that's what you are asking for.
coolvibes
No you are right i have had my head in java script for the last week reminds me of old basic starting to get to grips with the most basic of concepts and i am glad xhtml didnt take over as it invites lazyness into coding and makes it harder to read when debuging

kind regards
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.