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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Dynamically setting table widths based on screen res.
Old 03-12-2007, 08:04 AM Dynamically setting table widths based on screen res.
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
The site I'm working on is:
http://shape.trudeauconsulting.com
(just a draft site, in the very early stages)

I have a 800px wide background image that I'm aligning to the top-right. If you go to the site you'll see why - there's a big white arrow going up the left side and across the top. I want to put my menu bar down the side of that white strip, and keep the content in the blue area (middle of the screen).

If I view the page in 1024x768 mode, I could set my table dimensions to make it all fit in perfectly, but that's not the way the world works. Not everyone runs in this mode, and not everyone has their screen maximized.

Still new to some of this, can someone explain how I can read in the screen resolution and dynamically set my column widths based on that info? I'm sure this has been covered but hoping to get some help.

If you have examples, even better.

Thanks much!
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
 
Register now for full access!
Old 03-12-2007, 01:43 PM Re: Dynamically setting table widths based on screen res.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What if you just made a fixed-width site and flushed everything to the right to coincide with your background image?

e.g.
Code:
#wrapper {
     float:  right;
     width:  760px;
     margin:  0;
     padding:  0;
}
#wrapper-clear {
     clear:  right;
}
...
Code:
<body>
<div id="wrapper">
The rest of your site goes in here.
</div>
<div id="wrapper-clear"></div>
</body>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-14-2007, 12:31 AM Re: Dynamically setting table widths based on screen res.
Skilled Talker

Posts: 67
Trades: 0
search for quirksmode. they have a good table onthis. i found it is different on differnt browsers.

i personally hate sites that are not centered. why use fixed widths?
__________________

Please login or register to view this content. Registration is FREE
- Hottest Celebrity News and Gossip

Please login or register to view this content. Registration is FREE
- Stock Predictions using AI

Please login or register to view this content. Registration is FREE
- Best Deals and Coupons
Please login or register to view this content. Registration is FREE
MysteryLeo is offline
Reply With Quote
View Public Profile
 
Old 03-15-2007, 09:10 AM Re: Dynamically setting table widths based on screen res.
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
Thanks! I didn't know about the float property so I'll give that a shot.
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
Reply     « Reply to Dynamically setting table widths based on screen res.
 

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.81656 seconds with 12 queries