Background-repeat with position: absolute;

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JnrJnr
    New Member
    • Oct 2009
    • 88

    #1

    Background-repeat with position: absolute;

    Hi guys and girls. How can I set a <div>'s background-repeat while using position: absolute; without having to "have" to use width: px;. Is there any way? pls help

    #header
    {
    position: absolute;
    background-repeat: repeat-x;
    background-color: Red;
    }
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    #2
    hey mate,

    just off the top of my head you could try using this or a similar style.

    Code:
    #header
    {
    position: absolute;
    background-image:url(Header_Bar_bg.png);
    background-repeat: repeat-x;
    background-color: Red;
    }

    Comment

    Working...