SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 Column Layout Issue

    Hi all,

    Can anyone see why this is causing an issue?

    OK
    http://www.inglebyracing.com/modX/

    Wrong
    http://www.inglebyracing.com/modX/Home2/

    I built the template using dummy lorem ipsum data which worked fine but as soon as I removed this and put in something really simple, the whole layout died.

    Any idea's?


  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you be more specific about what's not displaying correctly? It would also be helpful to know which browsers you're testing in.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I had to use a specific two column layout that doesn't using floats like you'd normally do. When I tried using a left and right float, if the left content filled the left container, the right container would shift underneath.

    This problem is resolved but if I only put a small amount of text in the left column, then the right column doesn't stay to the right of the page but to the right of the content.


  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,481
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    If I understand you correctly then change your right float to this instead.

    Code:
    #right {
        width: 210px;
        float: right;
        margin-left:-210px
    
    }

  5. #5
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect. Paul once again you have saved the day.



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
  •