Stretcy div margin problem

Discussion in 'HTML' started by Chris, Aug 9, 2006.

  1. Chris

    Chris Guest

    I am trying to create a stetchy footer with a image aligned to the right. I
    have enclosed two div within a container div which is 100% wide. I want to
    make the inner left div have a border which stretches 100% minus the 183px
    of the image in the right floated div. When I try to use the margin-right
    property on the left div it doesn't do anything it still stretches to 100%.
    Can anyone tell where I am going wrong?


    <div id="contentfooter">

    <div id="contentfooterright"><img src="footer/images/contentbottomlogo.gif"
    alt="Test" /></div>
    <div id="contentfooterleft"></div>
    </div>


    #contentfooter
    {

    clear:both;
    width:100%;

    height:55px;

    }
    #contentfooterleft
    {
    border-left-width: 1px;
    border-left-color: #669900;
    border-left-style: solid;
    height:55px;
    border-bottom-width: 1px;
    border-bottom-color: #669900;
    border-bottom-style: solid;
    margin-right:183px;
    width:100%;
    }

    #contentfooterright
    {
    float:right

    }
     
    Chris, Aug 9, 2006
    #1
    1. Advertising

  2. Chris

    Nije Nego Guest

    On Wed, 9 Aug 2006 23:33:14 +0100, Chris wrote:

    > stetchy


    Which one do you really want Stretcy or Stetchy?

    --
    buy, bought, bye
     
    Nije Nego, Aug 9, 2006
    #2
    1. Advertising

  3. Chris

    Chris Guest

    What can I say, I'd had a long day ;)

    "Nije Nego" <"nije\"nego"@net.hr> wrote in message
    news:8iffbbm5zpa4.1px25wtf4fesc$...
    > On Wed, 9 Aug 2006 23:33:14 +0100, Chris wrote:
    >
    >> stetchy

    >
    > Which one do you really want Stretcy or Stetchy?
    >
    > --
    > buy, bought, bye
     
    Chris, Aug 10, 2006
    #3
    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. Peter Charles

    Controlling left margin in a DIV

    Peter Charles, Oct 29, 2003, in forum: HTML
    Replies:
    8
    Views:
    609
    Peter Charles
    Oct 29, 2003
  2. Logical
    Replies:
    9
    Views:
    1,626
    Mark Parnell
    Aug 2, 2004
  3. Ciaran
    Replies:
    14
    Views:
    1,754
    dorayme
    Jun 27, 2009
  4. Cal Who
    Replies:
    1
    Views:
    440
    Alexey Smirnov
    May 16, 2010
  5. Cal Who
    Replies:
    4
    Views:
    584
    Cal Who
    May 17, 2010
Loading...

Share This Page