|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: How do I have a fixed (non-scrolling) background image?
Answer: With CSS, you can use the background-attachment property. The background attachment can be included in the shorthand background property, as in this example:
body { background: white url(example.gif) fixed ; color: black ; }
Note that this CSS is supported by Internet Explorer, Mozilla, Firefox Opera, Safari, and other browsers. In contrast, Microsoft's proprietary BGPROPERTIES attribute is supported only by Internet Explorer.
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7095 users |
Added on |
9/4/2014 |
Views |
69883 |
Rate it! |
|
|
Question:
How do I have a fixed (non-scrolling) background image?
Answer:
With CSS, you can use the background-attachment property. The background attachment can be included in the shorthand background property, as in this example:
body { background: white url(example.gif) fixed ; color: black ; }
Note that this CSS is supported by Internet Explorer, Mozilla, Firefox Opera, Safari, and other browsers. In contrast, Microsoft's proprietary BGPROPERTIES attribute is supported only by Internet Explorer. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All CSS Interview Questions & Answers - Exam Mode /
Learning Mode
|