Hi, I have a site that i made that is align="center". For some users with big screens the site will be to short. I made something i can use that is 1px height and as long as the site. I want this to go down the whole screen for users with big screens.
A answer would be very appreciated
| Asperud wrote: |
Hi, I have a site that i made that is align="center". For some users with big screens the site will be to short. I made something i can use that is 1px height and as long as the site. I want this to go down the whole screen for users with big screens.
A answer would be very appreciated |
Simple,, all you want is a script that sends you to a certain page is the screen resolution is high, and another if screen rsolution is low..
so here is the javascript you need:
| Code: |
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768)){
window.location="index.html";
}else{
window.location="index2.html";
}
//-->
</SCRIPT>
|
[/code]
| Asperud wrote: |
Hi, I have a site that i made that is align="center". For some users with big screens the site will be to short. I made something i can use that is 1px height and as long as the site. I want this to go down the whole screen for users with big screens.
A answer would be very appreciated |
Do you mean that the content of the site is too narrow (horizontally) and sits in the centre horizontally of a big screen?
Or is the content of the site too short (vertically) and the site is aligned vertically in the centre?
Do you just want your image to repeat itself vertically?
David.
how about keeping extra contents down the website.
a sample of your template would be better to help you with if you could show us.
Yeah, just do what the other guy said about the Javascript. Make sure to put it in the head though...or instead of making 2 pages just makes different layouts that fit the different screen sizes.
like:
| Code: |
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768)){
window.location="1024.css";
}else{
window.location="768.css";
}
//-->
</SCRIPT> |
etc etc
I thought this could be easily achieved with this code?
| Code: |
<table width="100%" height="100%">
</table> |
Won't this make the webpage fit any screen?
| JinTenshi wrote: |
I thought this could be easily achieved with this code?
| Code: | <table width="100%" height="100%">
</table> |
Won't this make the webpage fit any screen? |
No, because the stuff INSIDE that would get displaced on the larger or smaller screens.
so, may be you could designed the height and width with percentage.
regards,
Typically, the easy thing to do is just make a table that's WIDTH=100% and HEIGHT=100% with the contents vertically and horizontally centered. ...Then put everything into this 1x1 table. It's simple, and older browsers can see it too.
usually, i just use html becuase i think that its easier
just type in"<center>" and when you r done, close it with "</center>"
enjoy!

Then the things within could be made to fit the screen. Just insert the Height="100%" and Width="100%". For example a banner can be made to fit and screen by using <img src="url" height="100%" width="100%"> or maybe perhaps you could give examples for your content?
| Bejeweledhorses wrote: |
usually, i just use html becuase i think that its easier
just type in"<center>" and when you r done, close it with "</center>"
enjoy!  |
that wasnt the question tho... but big congratulations to you if you think we post 10 replys to this topic and think the questino was how to center something and no1 knew how...
| JinTenshi wrote: |
Then the things within could be made to fit the screen. Just insert the Height="100%" and Width="100%". For example a banner can be made to fit and screen by using <img src="url" height="100%" width="100%"> or maybe perhaps you could give examples for your content? |
that will make the picture display it's 100% height and width.. it wont be 100% of the screen..
a picture that is 100x100px and u set width and height to 100% will show the picture with 100x100px.. 90% will show it in 90x90px and so on...
However.. post a picture or url when it's done so we can see what u have been doing 
I think he wants images to stretch and fit the entire screen. In which I don't know of any codes that can do this. The best way is to say on your webpage that "This page is best viewed in this resolution: 1024x768" and most of the time I always make my webpage viewable nicely in "800 x 600" because that would fit nearly every screen.
But if there's such a code that can stretch images on your screen, I would wish to know. =D