Placement gone crazy

Discussion in 'CSS' started by fotoviva, Dec 2, 2008.

  1. #1
    I have been developing a new design for a client but when I have sucked in their content it's going crazy. Here's an example:

    http://viperdesign.co.uk/dev/ese/brochures.asp

    Can someone tell me why the 'General' heading sits in line with the bottom of the left column rather than under the last paragraph? The 'General' is a div styled as:
    .subheading {padding: 3px; padding-left: 1em; padding-right: 1em; font-weight: bold; border: 1px outset; clear: left; font-size: 110%; 
    			margin-bottom: 1.5em; margin-top:1.5em; }
    Code (markup):
    The layout was a basic DW template so I'm hoping there is nothing wrong with it! Any help would be appreciated :)
     
    fotoviva, Dec 2, 2008 IP
  2. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the code take out clear: left and see if that works
     
    Divisive Cottonwood, Dec 2, 2008 IP
  3. fotoviva

    fotoviva Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #3
    oh you beauty!

    Works a treat, thanks a bunch matey :)
     
    fotoviva, Dec 2, 2008 IP
  4. fotoviva

    fotoviva Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Thing is though, why does the clear not just clear the element above but rather the lefthand sidebar? Surely the sidebar shouldn't come into the equation :confused:
     
    fotoviva, Dec 2, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    If the sidebar is a float element, it does.

    See enclosing float elements for other methods of containing floats in a new block formatting context.

    cheers,

    gary
     
    kk5st, Dec 2, 2008 IP