thats why i've done all my sizes/measurements in percentages rather than pixels, it's just the text sizes that are the problem.
so am i going about this the wrong way?
am i better of doing all measurements in pixel size, and let the user adjust their resolutions?
please advice, as i am new to web design, and am very much in the trial and error stage.
also, common sense, and several sites and books,...
User Profile
Collapse
-
-
thanks for all your help. i've come to the conclusion this problem is not as easy to solve as it should be just using a css percentage to make the font size proportional.
i am new to web developement, and i was wondering if this is a common problem, or are most sites developed with just a single resolution in mind?Leave a comment:
-
i have changed the % of the font size in my css file, but in the lower resolutions the text(in this case, links) go of the bottom of the div(which in this case is a sidebar)
i know this is not neccesarily a javascript prob, but don't really want to have to start a new thread elsewhere.
is there not a clever way that the text can be clerverly resized depending on the res size?Leave a comment:
-
well, i thought i would need to write a javascript to change the fontsize after finding the window.screen.w idth/height.Leave a comment:
-
Change font size according to resolution
hello
i am putting together a web site that i would like to be virtually identical in all screen resolutions.
99% of the elements have % widths and height, rather than px measurements. so this is not the problem.
the problem i have is with font sizes.
does anyone know the best code to use change the fontsize according to the screen resoluiton?
malc -
ajax beginner: refresh button call doesn't change data
hello, i am a beginner to ajax.
i have created a mysql database, which i would like to access from a web page.
i have created 3 files, a html to display the data, a php file to extract the data, and a javascript file to to the clever stuff.
when i access the html page, all the data is displayed correcty, but if i add or delete any records, and press the button i have created to refresh the data(without reloading),... -
-
i've done all my measurements using percentages rather than pixels.
but i find that when viewing in lower resolutions, font sizes, if not reset, looks dispraportionat e.
i've put my the 1280 check in to start with, but will run checks for other widths.
using the code i've already given you, what do you think the best way to write it is?
also, to clarify, what exactly is wrong with my code i have...Leave a comment:
-
sorry to sound thick, but how would i implement this? at the moment, it's a very basic page, with no div's. so my code is:
...Code:function chkwidth() { if (window.screen.width == 1280) { document.getElementById("style1").style.text.fontSize="28"; } } .... <body onload="chkwidth()">Leave a comment:
-
-
sorry, see what you mean, should be if(condition).. ..
anyway, i don't get the error any more, but the style font is not being set, i.e
document.write( "<style type='text/css'> <!-- .style1 {font-size: 18px} --> </style>");
is not being written to page. i know this because the text 'hello' is not being set the sz 18.
any ideasLeave a comment:
-
am typing in caps to differentiate between me and the code, sorry if it seems i'm shouting.
the if statement is in the curly brackets of the function.
how would you write it?Leave a comment:
-
Object Expected Error
HELLO, I AM VERY NEW TO JAVA SCRIPT PROGRAMMING.
I AM PUTTING TOGETHER A PAGE FOR A FRIEND. THAT LOOK DEPENDS VERY MUCH ON SCREEN RESOLUTION, SO I AM TRY TO DETECT IT, AND CHANGE FONTS ACCORDINGLY. MY CODE SO FAR IS:
...Code:<head> <script type="text/javascript"> function chkwidth() { alert(window.screen.width); x = window.screen.width; if x
No activity results to display
Show More
Leave a comment: