|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
HTML
DETAILS
Question: How do I eliminate the space around/between my images?
Answer: If your images are inside a table, be sure to set the BORDER, CELLSPACING, and CELLPADDING attributes to 0. Extra space between images is often created by whitespace around the <IMG> tag in the markup. It is safe to use newlines inside a tag (between attributes), but not between two tags. For example, replace this:
<td ...> <img src=... alt=...> <img src=... alt=...> </td>
with this:
<td ...><img src=... alt=...><img src=... alt=...></td>
According to the latest specifications, the two should be equivalent. However, common browsers do not comply with the specifications in this situation. Finally, extra space between images can appear in documents that trigger the "standards" rendering mode of Gecko-based browsers like Mozilla and Firefox.
|
|
|
Category |
HTML Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7033 users |
Added on |
9/14/2014 |
Views |
72424 |
Rate it! |
|
|
Question:
How do I eliminate the space around/between my images?
Answer:
If your images are inside a table, be sure to set the BORDER, CELLSPACING, and CELLPADDING attributes to 0. Extra space between images is often created by whitespace around the <IMG> tag in the markup. It is safe to use newlines inside a tag (between attributes), but not between two tags. For example, replace this:
<td ...> <img src=... alt=...> <img src=... alt=...> </td>
with this:
<td ...><img src=... alt=...><img src=... alt=...></td>
According to the latest specifications, the two should be equivalent. However, common browsers do not comply with the specifications in this situation. Finally, extra space between images can appear in documents that trigger the "standards" rendering mode of Gecko-based browsers like Mozilla and Firefox. 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 eliminate the blue border around linked images?
|
View Answer
|
|
What are HTML Lists?
|
View Answer
|
|
Posting Copy and Paste HTML
|
View Answer
|
|
Should I put quotes around attribute values?
|
View Answer
|
|
How can I show HTML examples without them being interpreted as part of my document?
|
View Answer
|
|
How can I have two sets of links with different colors?
|
View Answer
|
|
How do I create a link that sends me email?
|
View Answer
|
|
Why is there extra space before or after my table?
|
View Answer
|
|
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
|
View Answer
|
|
Can I use percentage values for <TD WIDTH=...>?
|
View Answer
|
|
How can I use forms for pull-down navigation menus?
|
View Answer
|
|
How can I use tables to structure forms?
|
View Answer
|
|
How can I eliminate the extra space after a </form> tag?
|
View Answer
|
|
How do I set the focus to the first form field?
|
View Answer
|
|
How do I make a form so it can be submitted by hitting ENTER?
|
View Answer
|
|
Do I have to memorize a bunch of tags?
|
View Answer
|
|
How can I check for errors?
|
View Answer
|
|
How do I use forms?
|
View Answer
|
|
How do I center a table?
|
View Answer
|
|
How can I use tables to structure forms?
|
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 HTML Interview Questions & Answers - Exam Mode /
Learning Mode
|