HTML elements STRETCH to fill available space or not

Discussion in 'CSS' started by dahouse, Feb 20, 2010.

  1. #1
    Hey guys,

    http://jameskwright.com/author.html

    first question:

    I am trying to make the bottom border on the menu at the top of the page (see link) stretch to the edge of the right side. So far, I've only been able to do so with padding-right and a dedicated amount of pixels.

    Is there any way to do it automatically without the need for math and calculating the width of everything else?

    I just want to be able to change the menu items without much trouble.



    Second question:
    You may notice the headings over the text. They are H2, H3 tags. I was wondering what to do so that the background only expands as far as the text. Not fill the whole content area.

    Thanks
     
    dahouse, Feb 20, 2010 IP