|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: How To Style Table Cells?
Answer: Margin, Border and Padding are difficult to apply to inline elements. Officially, the <TD> tag is a block level element because it can contain other block level elements (see Basics - Elements). If you need to set special margins, borders, or padding inside a table cell, then use this markup:
<td> yourtext </div></td> to apply the CSS rules to the div inside the cell. </p>
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6775 users |
Added on |
9/4/2014 |
Views |
66616 |
Rate it! |
|
|
Question:
How To Style Table Cells?
Answer:
Margin, Border and Padding are difficult to apply to inline elements. Officially, the <TD> tag is a block level element because it can contain other block level elements (see Basics - Elements). If you need to set special margins, borders, or padding inside a table cell, then use this markup:
<td> yourtext </div></td> to apply the CSS rules to the div inside the cell. </p> 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 far can CSS be taken beyond the web page--that is, have generalized or non-web specific features for such things as page formatting or type setting?
|
View Answer
|
|
How frustrating is it to write a specification knowing that you're at the browser vendors' mercy?
|
View Answer
|
|
What is initial value?
|
View Answer
|
|
What is value?
|
View Answer
|
|
What is shorthand property?
|
View Answer
|
|
Why shouldn't I use fixed sized fonts ?
|
View Answer
|
|
What browsers support style sheets? To what extent?
|
View Answer
|
|
Which characters can CSS-names contain?
|
View Answer
|
|
How to make text-links without underline?
|
View Answer
|
|
What is the difference between ID and CLASS?
|
View Answer
|
|
Can I include comments in my Style Sheet?
|
View Answer
|
|
Is there anything that CAN'T be replaced by Style Sheets?
|
View Answer
|
|
How can I make a page look the same in e.g. NS and MSIE ?
|
View Answer
|
|
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?
|
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
|
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
|