Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

First website


noamma's Avatar
Member
0 0

Hi, I'm building now my first website (http://whub27.webhostinghub.com/~matanm5/index.php), using HTML, CSS, JavaScript and PHP. Anyway, when I load it to the server, some problems created: When i'm getting into the page, sometimes it crooked, probably because the browser shows it before it loading all the code. And in some computers, the pictures are not where they should be, although I use percentages when I put them.

I have no idea why it's happened. Someone have?

Thanks anyway, Noamma


starofale's Avatar
Member
0 0

At the end of the window.onresize function, you should probably call setp() and setpich() so the text and pictures are resized. I haven't looked too carefully, so if there are any other functions to set the size of images etc., call them as well. I suppose this could be what is causing the images to show in the wrong places.

Other suggestions (not related to your question):

  • The server says your page is encoded in UTF-8, but you have some non UTF-8 characters in it. If you know what charset you're using you can declare it at the beginning of the <head> section with something like "<meta http-equiv="content-type" content="text/html; charset=UTF-8">"

  • It would be nice to have a version of your site which works without Javascript, instead of just telling people to enable it.


noamma's Avatar
Member
0 0

When everything will work properly with JavaScript, I'll make also a version without it. As for the pictures problem- sometimes two pictures that need to end on the same height, ends with pixel or two difference. Calling the functions on resize will not help… did you have an idea for the first problem?

Thank you anyway…