Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 10th, 2006, 1:26 PM   #1
Sungam
Newbie
 
Join Date: Dec 2005
Posts: 15
Rep Power: 0 Sungam is on a distinguished road
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?
Sungam is offline   Reply With Quote
Old Jul 10th, 2006, 1:32 PM   #2
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 4 Agent 47 is on a distinguished road
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"
Agent 47 is offline   Reply With Quote
Old Jul 10th, 2006, 1:48 PM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Sungam
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?
Include the following stylesheet code:
body { width: 800px; }
Arevos is offline   Reply With Quote
Old Jul 12th, 2006, 4:11 PM   #4
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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?"
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:50 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC