Connecting Tech Pros Worldwide Forums | Help | Site Map

How to fit web page in diffirent screen sizes

Familiar Sight
 
Join Date: Jan 2008
Posts: 199
#1: Nov 18 '08
I'm developing web site using php and mysql. when i see on my screen it's good. but when i see on flat screen monitors it's not properly fit on to the screen. How could I solve that problem. Please help me...

Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#2: Nov 18 '08

re: How to fit web page in diffirent screen sizes


In stead of specifying with in pixels (like 1024px) use % (like with='90%'), mostly its reduce ur probs.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#3: Nov 18 '08

re: How to fit web page in diffirent screen sizes


HTML & CSS are the visual aspects of a webpage. Ergo, this is not a PHP problem. I'll move it over to HTML.

Moderator.
Expert
 
Join Date: Aug 2008
Posts: 397
#4: Nov 18 '08

re: How to fit web page in diffirent screen sizes


Assuming the page is narrower than the window it is viewed in the parent container default position is top left. If the parent container is assigned float:left; the position of the page is top left. Assigning float:right; to the parent positions it to top right; Assigning margin: 0 auto; to the parent container positions the page to the top and centers it horizontally between the left and right rails. If the parent container has been assigned position absolute, the page could be positioned anywhere in the universe, if not beyond.

PS Providing a clickable link to the page is best. One picture is worth a thousand words . Otherwise we all get to play a little game of lets guess at a solution to an unknown.
Reply