Click to See Complete Forum and Search --> : browser compatibility? please help!


cate
08-05-2003, 10:09 AM
Hi,
I am designing a site at the moment for a company but am having serious problems with different screen sizes and browsers.
I want the site to stretch to fit each screen, rather than have bits cut off on smaller screens. Can I do this with javascript?
also, does anyone know why on some screens all images line up but in others they have shifted downwards?
thanks loads, any advice would be great!:)

Khalid Ali
08-05-2003, 11:07 AM
you can use js to set the size of the page content using
window.onresize event..

Vladdy
08-05-2003, 11:22 AM
You do not use javascript for this, but CSS driven flexible design.

Khalid Ali
08-05-2003, 11:28 AM
Originally posted by Vladdy
You do not use javascript for this, but CSS driven flexible design.

almost correct.
CSS will not render 100% results in flexible designes. In some screen res(mainly samller res) the images tend to overlap the text...
or possibley when I came accross this..I had a bad designe logic.. :D

cate
08-05-2003, 11:57 AM
thanks guys,
khalid - im completely new to javascript, could you point me in the right direction to learn about window.onresize event?
i definitely want to learn rather than just copy someones script.
what exactly will that event do?
also, do you have any ideas about the images that load on some screens as shifted downwards ?
thanks loads

Vladdy
08-05-2003, 01:39 PM
Originally posted by Khalid Ali
almost correct.
CSS will not render 100% results in flexible designes. In some screen res(mainly samller res) the images tend to overlap the text...
or possibley when I came accross this..I had a bad designe logic.. :D
Images that are part of the site design belong in the element background. For smaller screen resolutions you specify media="handheld" stylesheet that has different images (lower resolution, smaller size).
If you do it this way the site will degrade nicely and content will always be available. Relying on javascript is the wrong way to go.

Khalid Ali
08-05-2003, 01:53 PM
Originally posted by Vladdy
Relying on javascript is the wrong way to go.

I'd say its just matter of opinion.Nothing is wrong way,its only what is appropriate for specifc design.All one can do is follow the standards as much as possible.
And if you say that CSS2 is an absolute document,then its ok cus you do not live in a real world.:D

Becuse if it were they would not have come out with a new spec(css3...and so on).

Reality is to get the job done one needs means to do it and css is a merely a tool to get stuff done on the web amongst others (javascript being one of them).ANd these tool evolve to cater more stuff as the time passes by.
Just as onmousever was introduced in CSS with
a:hover..

For me if you want to say no "Use of javascript is wrong" well then you are welcome to say so,but I know that you will use and have used js and it will remain the same in foreseeable future..

Take care buddy.