|
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.2) By 9701 users |
Added on |
4/2/2013 |
Views |
71546 |
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.
|
|
Related Questions |
View Answer |
|
What are inline, block, parent, children, replaced and floating elements?
|
View Answer
|
|
Which set of definitions, HTML attributes or CSS properties, take precedence?
|
View Answer
|
|
How do I eliminate the blue border around linked images?
|
View Answer
|
|
How do I combine multiple sheets into one?
|
View Answer
|
|
Why does my content shift to the left on some pages (in FF)?
|
View Answer
|
|
How do I place text over an image?
|
View Answer
|
|
Which browsers support CSS?
|
View Answer
|
|
How can you set a minimum width for IE?
|
View Answer
|
|
What does ABCD (and ABCDE) mean?
|
View Answer
|
|
How do I have a background image that isn't tiled?
|
View Answer
|
|
What is alternate Style Sheet? How to link?
|
View Answer
|
|
What is contextual selector?
|
View Answer
|
|
What is ID selector?
|
View Answer
|
|
What is embedded style? How to link?
|
View Answer
|
|
What is imported Style Sheet? How to link?
|
View Answer
|
|
What is CSS rule 'ruleset'?
|
View Answer
|
|
What are Style Sheets?
|
View Answer
|
|
Three selectors: h1, .warning and #footer, what they do ?
|
View Answer
|
|
Is CSS case sensitive?
|
View Answer
|
|
What is external Style Sheet? How to link?
|
View Answer
|
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
|