CSS Floats

Discussion in 'HTML' started by Dave \IT\, Nov 23, 2004.

  1. Dave \IT\

    Dave \IT\ Guest

    Here's what I'm trying to do, but just can't get it working.

    I'm using CSS. I want to divide my page into two sections, so I have two
    DIVs set up in CSS, leftside and rightside. The left side is a fixed width.
    How do I go about making the right side fill the remaining part of the page?
    This can't be a fixed width (different resolutions), can't bee 100% (goes to
    next line)...the only way I could get it to work was to put an <HR> tag in,
    but I figure there's got to be a proper CSS way. I've tried float:right,
    float: left...all that keeps happening is that the right column sizes to the
    width of whatever's in it.

    Thanks

    P.S. In case it matters, I'm not setting it up to fit the entire page
    width...I have a 'container' DIV that centers the page at about 80% width
    (of screen). I figure, though, that if the left and right column's are
    within that container, it wouldn't matter if that 'container' was there or
    not (for the purposes of getting this working).
     
    Dave \IT\, Nov 23, 2004
    #1
    1. Advertising

  2. David Dorward, Nov 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Koen
    Replies:
    4
    Views:
    386
    Sudsy
    Oct 27, 2004
  2. derefed
    Replies:
    3
    Views:
    449
    Lauri Raittila
    Feb 12, 2005
  3. Nadav Samet

    nested right floats for CSS gurus

    Nadav Samet, Dec 4, 2005, in forum: HTML
    Replies:
    0
    Views:
    331
    Nadav Samet
    Dec 4, 2005
  4. Nadav Samet

    nested right floats for CSS gurus

    Nadav Samet, Dec 4, 2005, in forum: HTML
    Replies:
    1
    Views:
    345
  5. Kosio

    Floats to chars and chars to floats

    Kosio, Sep 16, 2005, in forum: C Programming
    Replies:
    44
    Views:
    1,291
    Tim Rentsch
    Sep 23, 2005
Loading...

Share This Page