TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-18-2008, 01:46 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Monitor Dimensions

I know this is probably one of the tricky things in Web Design, but how do you adjust your websites to fit any Monitor Dimensions. I have a wide screen tv as my monitor so. ;P
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 02-18-2008, 02:27 AM   #2 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

You can set the size of stuff using percentage instead of an absolute value.

Using CSS:
Code:
.somestyle {
    width: 100%;
}
Directly in the element:
Code:
<div width="100%">content</div>
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
The Following User Says Thank You to DeMo For This Useful Post:
Orc (02-18-2008)
Old 02-18-2008, 04:33 PM   #3 (permalink)
The Wanderer
 
Join Date: Sep 2007
Posts: 12
Thanks: 0
trs21219 is on a distinguished road
Default

if you need to you can use javascript to determine the monitor pixel dimensions and then go from there. just google it :)
trs21219 is offline  
Reply With Quote
Old 02-24-2008, 12:34 AM   #4 (permalink)
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Default

All through out the design and slice/coding phase I try to play around with different sizes by simply resizing my browser window down..

The main problem I'm starting to discover with many sites now, is they aren't thinking about all of the widescreen users out there, therefore using a 100% stretching method seems to look pretty wack most of the time... then on the flip side, make sure not to design a design for some major widescreen display, forgetting about all normal display users ;)

And as said above, one easy way would be to simply detect screen resolutions using javascript and dynamically load the appropriate CSS file.
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote
Old 02-27-2008, 10:03 AM   #5 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

There is such a thing as min-width and max-width (and conditional statements for IE6) you know. A very wide page presents readability problems as the user has trouble finding the beginning of the next line when it is 19" away, and 5 - 7" is supposed to be the optimum. I think that we should avoid having lines of text more than about 9 - 10" in length on our sites.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 02-27-2008, 12:42 PM   #6 (permalink)
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Default

Yeah that works too, but can get messy, since I am forced to use some javascript anyway, I just detect sizes and use appropriate styling..

It'd be amazing if IE6 actually recognized min-width/height properties too =/
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote
Old 02-27-2008, 01:01 PM   #7 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

But my browser viewport size is almost NEVER the same as my screen resolution. And the bigger the resolution, the more likely it is that a user will not have the browser at full screen. For example this screen is at 1200px width, but the browser is about 1000px wide. Min-width and max-width (and the conditional statement for IE6) are specifically designed to handle that situation, your resolution detecting javascript is not, and the javascript approach is never recommended in any of the other pro forums I use.

On the odd occasions I've used 1400px wide monitors or wider still ones, I've usually had the browser open at half the screen width. That's very useful when comparing how two browsers display things, for example, even on my 1200px wide screen.

Why is my browser not full screen? Because I've just this instant seen the email show a new one arrive as its display just changed. Or I'm copying some stuff from a Word doc to a web page, or using a database and checking that the online one matches the offline data. Lots of times I have FF and IE running side by side, especially when troubleshooting a design.

Resolution sniffing is not the answer.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:22 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design