![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2005
Posts: 15
Rep Power: 0
![]() |
Controling width of page in xhtml
Nothing pisses me off more than having 10px font line from the left edge of my 1280 wide screen to the other. TOO MANY WORDS ON A SINGLE LINE ASSHOLE. I like to use blogger, which creates xhtml, but I don't know how to make it just 800 pixels wide. Any help?
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 4
![]() |
Eh? What are you asking?
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
#3 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
body { width: 800px; } |
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
HTML is not supposed to force presentation like that. Even though CSS actually /is/ designed for layout and presentation purposes, it's best not to use it arbitrarily. If you force 800px width, it will look great on your massive screen, but it'll be nigh unusuable on my Psion 5 (640x240), or my Panasonic CF41 (640x480).
Consider resizing your browser window instead; if you want the page to get narrower, make your browser window narrower. It is the user's device that is supposed to determine things like width, which the server and site cannot safely expect to know much about. If you never actually resize your windows so that they don't occupy your entire display, what's the point in having the nice monitor? Alternatively, on many systems (including MSIE, which I use at work, on XP Pro and Firefox, which I use otherwise, on Linux) you can hold Control and roll the scrollwheel of your mouse (if you have one) towards you to zoom in (increase text size is really what this means) (or use the menus to increase/decrease the text size). Don't force layout with your code. It's achingly bad style.
__________________
"I'm not a genius. Why do I have to suffer?" |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|