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?
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?
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/
Summary: Doh. Fambi - your post reminded me that I'd actually updated that javascript function I posted above. When I went looking for it earlier, I grabbed the old one. The syntax is the same, but the funct...
Summary: Sorry about the length, im sure their is a shorter way to get this to work, but still does the same job <script language="JavaScript"> </script> you can change the numbers in brackets to ...
Summary: Hi, It's because the 'test' array is getting built before the page has loaded (so the input fields aren't yet defined). You can build the test table each time you call 'empty()' (this also grabs the c...