SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Zealot Norrad's Avatar
    Join Date
    Nov 2003
    Location
    Thailand
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Splitting box in 2 columns

    I have a simple box on my site that I want to split in 2 columns using CSS.

    The code to create the current box is:
    PHP Code:
    <div id="main">
      <
    div id="box">&nbsp;</div>
    </
    div
    And the stylesheet:
    PHP Code:
    #main {
        
    border1px solid #CCCCCC;
        
    width400px;
        
    padding5px;
    }
    #box {
        
    padding5px;
        
    background-color#CCCCCC;

    I want to split the centre box (#box) into 2 columns of equal width. Is this possible using CSS or should I resort to tables?
    Attached Images Attached Images


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
  •