By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Background-repeat with position: absolute;

P: 88
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

position: absolute;
background-repeat: repeat-x;
background-color: Red;
Apr 3 '11 #1
Share this Question
Share on Google+
1 Reply

P: 96
hey mate,

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

Expand|Select|Wrap|Line Numbers
  1. #header
  2. {
  3. position: absolute;
  4. background-image:url(Header_Bar_bg.png);
  5. background-repeat: repeat-x;
  6. background-color: Red;
May 11 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.