fieldset height issue

Discussion in 'CSS' started by gr8webseller, Mar 1, 2010.

  1. #1
    see the picture attached below,,,

    there are two fieldsets,,, these 2 fieldsets are inside a fieldset,,, i want to make the height of 2 fieldsets same even though the content inside the fieldsets changes,,, please help me with this,,,
     

    Attached Files:

    gr8webseller, Mar 1, 2010 IP
  2. typingmums

    typingmums Well-Known Member

    Messages:
    1,446
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Cant you just give the fieldset a class and set the height in the style sheet?

    .fieldset_class {
    height: 30px;
    }
     
    typingmums, Mar 1, 2010 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    IF those elements need to be a dynamic height, then you cannot actually make them auto-expand to the same height. Doesn't work that way. You want that behavior, you have TWO choices.

    1) Use a table. Miserable /FAIL/ at coding.

    2) wrap both in a DIV, and use what's called 'faux Columns' which is where the DIV expands around both elements and has a tiled background to mimic the APPEARANCE of them being the same size. Basically 'faking it'. This can be problematic if both those elements are also dynamic width.

    Though... fieldsets INSIDE a fieldset probably means you've overcomplicated your markup - but again without code we're mostly making wild guesses in the dark.
     
    deathshadow, Mar 2, 2010 IP
  4. gr8webseller

    gr8webseller Peon

    Messages:
    1,097
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok, thanks,,,, i will try to add some height,,, to fix the height
     
    gr8webseller, Mar 2, 2010 IP