Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Make width the right size for a 1024 monitor
Old 01-21-2009, 03:37 PM Make width the right size for a 1024 monitor
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Hey, ok this is my website and I want the width to be around 1024px as I don't want to see the scrollbar going wide: http://www.danielmousdell.com/non-slip-tape/

Now it is the main white bit which is 1024px and I want the whole of it to be that size so I try and add a "width: 1024px;" to the body in css and it makes the page go to the left.

Can anyone tell me how I would do this

Thanks alot
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 03:49 PM Re: Make width the right size for a 1024 monitor
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
width:996px at a maximum to avoid scrollbars when you are targeting a 1024px screen width
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-21-2009, 03:55 PM Re: Make width the right size for a 1024 monitor
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
You could use something like this...
Code:
<script language=”JavaScript” type=”text/javascript”><!– // –><![CDATA[
if ((screen.width>=1024) && (screen.height>=768)) {
window.location=”higher1024.html”;
}
else {
window.location=”below1024.html”;
}
//–>
</SCRIPT>
But why do you really need it? There's a lot of wasted space on the page, just make it something like 800px wide...

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 01-21-2009, 03:57 PM Re: Make width the right size for a 1024 monitor
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Thanks Chris
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Make width the right size for a 1024 monitor
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27472 seconds with 12 queries