Forum Moderators: open

Message Too Old, No Replies

adapting website to different screens

         

member22

3:33 pm on Oct 9, 2008 (gmt 0)

10+ Year Member



Hi there,

I just went to the mac store and looked at my website on a big mac screen ( 20 and 24 inches ) and it looks really bad !

First issue it is glued to the top of screen and not centered.
Second issue it is really small of a 24 inch screen ( it is the size of what I see on a mac book screen )

How can I fix this issue, is it in my index.php file and anyone know the line of code to add to make sure it adapts to the screen size and to get it centered.

Thank you,

PHP_Chimp

3:37 pm on Oct 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use CSS with relative units. Dont use tables.

member22

4:06 pm on Oct 9, 2008 (gmt 0)

10+ Year Member



Thank you for your quick reply but this absolute chinese for me.

I do have access to my index.php file and my webmaster has access to the database.

any chance I can change it myself in the index.php file ? and if so what should I write instead of what ?

Thank you

tedster

12:13 am on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It all depends on how the page is already coded. For most sites, the CSS rules will be in an external file with the extension .css.

It also depends if you want your content "centered" vertically or also centered horizontally - I suspect the latter because of your comment about seeing your page "stuck to the top of the screen."

To answer your question more directly, it's unlikely we can give you an answer that you can use by yourself, given that you say this all sounds like a foreign language to you. You'll need to get some help from someone who has a bit of knowledge about HTML and CSS.

StoutFiles

3:58 am on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use CSS with relative units. Dont use tables.

The site can be adjusted just fine if it's using tables, which I suspect it is.

PHP_Chimp

9:27 pm on Oct 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



True, but if you are going to use CSS then why use tables? Use divs and position them where you want ;)

No need to have the problems and inflexibility that using tables causes. Less code, easier to position and now that Microsoft have joined the rest of the planet in following standards it will even work with IE...well most of it and only in the latest versions, but hey we cant expect Microsoft to adopt other peoples standards now can we...