SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)

    Designating a fixed amount space

    I have a page with some tabular data at the top, some space which I will need help with (see below), and then a form which will affect the space mentioned above. When a user selects an option of a select form field the space above will be rewritten using JavaScript to contain some text for ther user to read. I need the space where this text to be written to be a fixed size so the form won't bounce around as this text changes from blank to some text. I've tried using a span and div with a set height but this doesn't seem to be working. Trying to avoid using a table for such a small task.

    (Here's a visual for those of us who like to see things):

    Code:
    (Tabular Data)
    Name: Joe Smith                   Address: 123 Main Street
    Email: user@domain.com         URL: www.domain.com
    
    ...
    
    
    Fixed height space goes here
    
    ...
    
    (form)

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Can I see some of the HTML/CSS code you've been using to test this out? Also, what other styles are set on that div besides the fixed height?

  3. #3
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You actually gave me the answer already. I used a span instead of a div. I guess that is a good indication that I need to read up on my css. Didn't think there was really much of a difference between the two.

  4. #4
    SitePoint Member
    Join Date
    Jul 2004
    Location
    The United of Kingdom
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    div = Block Level Elements.
    span = Inline.

  5. #5
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Good to know, thanks!


Bookmarks

Posting Permissions

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