Computing.Net > Forums > Web Development > Text length?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Text length?

Reply to Message Icon

Name: boaster
Date: May 23, 2008 at 11:23:26 Pacific
OS: n/a
CPU/Ram: n/a
Product: n/a
Comment:

I'm working on using <div> tags with floats to create a web page that has two columns if the user has a standard monitor and three columns if they have a widescreen monitor. I've got the width part down, but is there any way to calculate how to divvy up the text into three columns, i.e. any type of event or coding to indicate when a column is full so that the javascript that creates the next div tag can run?



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: May 24, 2008 at 12:26:31 Pacific
Reply:

I'm not sure there is a good solutin here. You can never know whether the user has a wide-screen monitor or not. All you can determine is how big the browser window is - and that can change while they view the page. There are methods in JavaScript to determine the size of a div or the size of the browser window. I guess you could use those, but it would still be a "hack" solution in my opinioin/

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Text length?

Hide e-mail address www.computing.net/answers/webdevel/hide-email-address/1457.html

Random Text www.computing.net/answers/webdevel/random-text/247.html

Javascript text boxes with array www.computing.net/answers/webdevel/javascript-text-boxes-with-array/3719.html