|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: As a developer who works with CSS every day, I find one complication that continues to bother me in my daily work. Support for CSS has always been good on the horizontal scope, but vertical positioning has always been quite complicated. Alone the procedure to affix a footer to the bottom of a screen in dependance of the amount of content is unnecessarily difficult. The old table method provided much easier methods for this. What are your thoughts on this and do you see improvement following in future CSS revisions?
Answer: Indeed, the CSS formatting model allows more control horizontally than vertically. This is due to (typically) having a known width, but an unknown height. As such, the height is harder to deal with. However, CSS2 fixed positioning allows you to place content relative to the viewport (which is CSS-speak for window) instead of the document. For example, by setting position: fixed; bottom: 0 on an element, it will stick to the bottom. This works in Opera, Safari and Mozilla-based browsers. IE6 doesn't support it, however. It remains to be seen if IE7 will support it.
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 7285 users |
Added on |
9/4/2014 |
Views |
66844 |
Rate it! |
|
|
Question:
As a developer who works with CSS every day, I find one complication that continues to bother me in my daily work. Support for CSS has always been good on the horizontal scope, but vertical positioning has always been quite complicated. Alone the procedure to affix a footer to the bottom of a screen in dependance of the amount of content is unnecessarily difficult. The old table method provided much easier methods for this. What are your thoughts on this and do you see improvement following in future CSS revisions?
Answer:
Indeed, the CSS formatting model allows more control horizontally than vertically. This is due to (typically) having a known width, but an unknown height. As such, the height is harder to deal with. However, CSS2 fixed positioning allows you to place content relative to the viewport (which is CSS-speak for window) instead of the document. For example, by setting position: fixed; bottom: 0 on an element, it will stick to the bottom. This works in Opera, Safari and Mozilla-based browsers. IE6 doesn't support it, however. It remains to be seen if IE7 will support it. 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 |
|
How do I write my style sheet so that it gracefully cascades with user's personal sheet ?
|
View Answer
|
|
What is property?
|
View Answer
|
|
What can be done with style sheets that can not be accomplished with regular HTML?
|
View Answer
|
|
Why is my external stylesheet not working ?
|
View Answer
|
|
How do I quote font names in quoted values of the style attribute?
|
View Answer
|
|
Styles not showing?
|
View Answer
|
|
CSS is clearly very useful for separating style from content. But apparently people tend to have problems when using it for layouts. Would you say this is because people have not yet understood how to properly do layout in CSS, or is it CSS that is lacking in this area? What can be done to improve the situation? --- Would the web benefit from HTML and CSS being complemented with some kind of "layout language"?
|
View Answer
|
|
How do I have a non-tiling (non-repeating) background image?
|
View Answer
|
|
Are Style Sheets case sensitive?
|
View Answer
|
|
What is cascade?
|
View Answer
|
|
What is 'important' declaration?
|
View Answer
|
|
What is CSS declaration?
|
View Answer
|
|
What is CLASS selector?
|
View Answer
|
|
What is selector?
|
View Answer
|
|
What is CSS rule 'at-rule'?
|
View Answer
|
|
What does the "Cascading" in "Cascading Style Sheets" mean?
|
View Answer
|
|
Why use Style Sheets?
|
View Answer
|
|
As a reader, how can I make my browser recognize my own style sheet?
|
View Answer
|
|
How do I design for backward compatibility using Style Sheets?
|
View Answer
|
|
What are pseudo-classes?
|
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
|