div code for layout

Discussion in 'PHP' started by greentree, Jun 21, 2008.

  1. #1
    I don't have a clear understanding of how to use the div code to custom a layout. Column 2 will be short because it will contain links. Column 1 and 3 will contain the main site content. How should I set up the div or php code so that I could get this layout in my php file? The layout I would like is this:

    ________________________________________
    Header Graphic

    _______________________________________
    :column ............ :..column. :......blog..........:
    :...1................. :...2........ :.....................:
    :...main ............ :............ :......subcontent:
    :.. content......... :............ :.....................:
    : ..................... :............ :......................:
    : ..................... :............ :......................:
    ---------------------------------------------
     
    greentree, Jun 21, 2008 IP
  2. Varreon

    Varreon Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The ascii diagram is confusing, but if you post an image of what you'd like I'd be happy to help you with it.
     
    Varreon, Jun 21, 2008 IP
  3. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #3
    This shouldn't really be in a PHP forum. This is more of a CSS/HTML issue.
     
    Danltn, Jun 21, 2008 IP
  4. Karin_Elliott

    Karin_Elliott Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Dan's right - it's not a php issue. If you want a 3 col setup just float the divs with the widths you want.
     
    Karin_Elliott, Jun 21, 2008 IP