SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's the problem with my CSS?

    Hi there,

    I'm trying to code this:

    link

    and my code is this:

    CSS -

    Code:
    #container {
     width: 870px;
     height: 720px;
     margin: 0 auto;
    }
    
    #leftColumn {
     float: left;
     width: 218px;
     height: 720px;
     background-color: #fff;
    }
    
    #rightColumn {
     float: left;
     width: 652px;
     height: 720px;
     background-color: #c2df91;
    }
    XHTML -
    Code:
                                          <!-- CONTAINER BEGINS -->
    
    				<div id="container">
    			
    			<!-- LEFTCOLUMN BEGINS -->
    		
    					<div id="leftColumn">
    
    					</div>
    
    			<!-- LEFTCOLUMN ENDS, RIGHTCOLUMN BEGINS -->
    
    					<div id="rightColumn">
    
    					</div>
    
    			<!-- RIGHTCOLUMN ENDS -->
    
    				</div>
    
    			<!-- CONTAINER ENDS -->
    but all I'm getting in a browser is a blank screen.

    Am I missing something completely obvious? :\

    Thanks!

  2. #2
    SitePoint Zealot
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Am I missing something completely obvious?
    Content

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Strange..

    Surely if the divs have a set height and width, they'll display whether there's content in them or not?

    The container div is there, and when I give it a background colour, that displays correctly..

  4. #4
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved this, but not quite sure how :P

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hi, the problem was probably a validation error (most likely in your CSS, doubtful in the HTML though still possible ).

    Glad you solved it, and sorry we took so long to try and help
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


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
  •