Jump to content

How to set default size for php page?


mohabitar

Recommended Posts

Ive had this problem where when i create a page with lets say frontpage and I view it on my computer, it looks fine and centered. But when i access my site from another computer with a different sized monitor, it looks a lot different and uncentered. How do I get my page to look the same on every computer no matter the size? Thank You.

(sorry i dont know wether this topic belongs here or not)

Link to comment
Share on other sites

It is impossible, but a first step is to toss frontpage. Seriously go with Dreamweaver or even Notepad work 1000x better than frontpage.

 

For the most part you would either have to do a screen res check with javascript and display a stylesheet that fits it.

 

Either way this is an HTML question, not really a php question as PHP really has nothing to do with it.

 

--FrosT

Link to comment
Share on other sites

If you do not know the difference than you do not need to know. If you want to know search google for "frontpage sucks" http://www.google.com/search?hl=en&q=frontpage+sucks&btnG=Google+Search

 

I am sure you will find plenty of good articles on why it sucks.

 

All in all, learn html (not hard at all) and CSS and than code your own pages via Notepad. Notepad has never failed me once.

 

EDIT:

 

On top of that this is not a php related question, probably should be directed to a Frontpage forum or HTML forum. Even though the page me be "php" the flaw is in the design via html coding.

 

--FrosT

Link to comment
Share on other sites

To see what is wrong with Frontpage, then view your source. Frontpage is a Microsoft product and does not follow the rules for creating pages. It adds sooooo much extra junk that trying to mess with the code inside is almost impossible. I stripped a frontpage designed page and I took out almost 80% of the code because it was not necessary. I was able to duplicate it with a couple of css styles implemented by way of class="classname"

 

Seriously, for the good of the web development community drop frontpage. Dreamweaver is good as it does not add all the extra crap that Frontpage does. I use it myself. I mainly use it for creation of the html pieces and then go to code view for the real work.

 

If you want the page centered, then I would use an align="center" applied to the topmost <div> or <table> to make it stay centered in all browsers/pc's/resolutions.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.