|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: How can I make a page look the same in e.g. NS and MSIE ?
Answer: The simple answer is, you can't, and you shouldn't waste your time trying to make it exactly the same. Web browsers are allowed, per definition, to interpret a page as they like, subject to the general rules set down in the HTML and CSS specifications. As a web author you can not have a prior knowledge of the exact situation and/or medium that will be used to render your page, and it's almost always rather counterproductive to try to control that process. There is no necessity for a well-written page to look the same in different browsers. You may want to strive to ensure that it looks good in more than one browser, even if the actual display (in the case of graphical browsers) comes out a bit different. "Looking good" can be achieved by adopting sensible design and guidelines, such as not fixing the size or face of your fonts, not fixing the width of tables, etc… Don't fight the medium; most web users only use one browser and will never know, or bother to find out, that your page looks different, or even "better", in any other browser.
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7117 users |
Added on |
4/3/2013 |
Views |
66489 |
Rate it! |
|
|
Question:
How can I make a page look the same in e.g. NS and MSIE ?
Answer:
The simple answer is, you can't, and you shouldn't waste your time trying to make it exactly the same. Web browsers are allowed, per definition, to interpret a page as they like, subject to the general rules set down in the HTML and CSS specifications. As a web author you can not have a prior knowledge of the exact situation and/or medium that will be used to render your page, and it's almost always rather counterproductive to try to control that process. There is no necessity for a well-written page to look the same in different browsers. You may want to strive to ensure that it looks good in more than one browser, even if the actual display (in the case of graphical browsers) comes out a bit different. "Looking good" can be achieved by adopting sensible design and guidelines, such as not fixing the size or face of your fonts, not fixing the width of tables, etc… Don't fight the medium; most web users only use one browser and will never know, or bother to find out, that your page looks different, or even "better", in any other browser. 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 pseudo-elements?
|
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
|
|
How do I make my div 100% height?
|
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
|
|
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
|
|
How do I get rid of the gap under my image?
|
View Answer
|
|
How do I design for backward compatibility using Style Sheets?
|
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
|