View Full Version : A Text Area?

03-01-2005, 03:00 PM
Well, what I want on my site is an area of about 225px where if I put alot of text inside it wont leave that 225px boundry, I could do a table but I really want to know how to do this. I think its called textbox or textarea maybe? Please help! Thanks in advance. :thumbsup:

03-01-2005, 03:14 PM
You mean one of these:



03-01-2005, 03:20 PM
No, I just want some text to be centered in the middle of the webpage in a boundry so without breaking a certain width, I need room on the right and left sides for other tables and junk. I wish I could find an example of this for you, I'm guessing there should be some type of code for this. Thank you for doing the research though I might use one of these. ;)

03-01-2005, 03:49 PM
Do you mean you want to arrange your page layout in the shape of three columns next to eachother, each containing different information?

The "old-school" way would be to use a table; as this approach has certain drawbacks (described here (http://davespicks.com/essays/notables.html), among various other places), using Cascading Style Sheets (CSS) and especially CSS positioning is the preferred way nowadays.

A large variety of approaches with different pros and cons can be found at CSS Discuss: Three Column Layouts (http://css-discuss.incutio.com/?page=ThreeColumnLayouts), although I'm slightly partial to Ryan Brill's negative margin approach (http://www.alistapart.com/articles/negativemargins/).

If you are unfamiliar or uncomfortable with CSS, a table would be acceptable, if not preferrable. Guides for HTML and CSS can be found at HTML Dog (http://htmldog.com/); if you have any specific questions, feel free to respond.

03-01-2005, 07:47 PM
Thanks Ronald for the info but I found out how to do it with CSS but I do have a question. What are the dimensions of a webpage?


When centering the middle column I need to know the margin-left and margin-right to make it perfectly centered. Thanks again man. :cool:

03-01-2005, 07:59 PM
There are no set dimensions. It depends on a user's OS, browser, screen resolution and window size. You could use percentages (%) to have adjustable padding/margin/width/height :) .

03-01-2005, 08:35 PM
Oh okay I hadn't thought of that. Thanks!