Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: A Text Area?

  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    A Text Area?

    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.

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Three column layout?

    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, 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, although I'm slightly partial to Ryan Brill's negative margin approach.

    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; if you have any specific questions, feel free to respond.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    width=?
    height=?

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

  • #6
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 .

  • #7
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh okay I hadn't thought of that. Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •