Answers
May 12, 2006 - 02:10 PM
May 12, 2006 - 02:33 PM
May 14, 2006 - 02:19 AM
May 15, 2006 - 06:54 AM
May 16, 2006 - 11:23 PM
May 22, 2006 - 07:14 AM
May 22, 2006 - 05:01 PM
You don't have to create a complete stylesheet - the CSS code can just be added to your html document.
Try putting this within your ! section:
!
May 25, 2006 - 07:28 AM
Jun 12, 2006 - 03:10 PM
Jul 03, 2006 - 08:12 AM
Feb 11, 2007 - 08:19 AM
display: block
This css property on an image will ensure that it is treated like a block level element - which will avoid the 3 pixel bottom margin problem (explanation follows below).
Example:
The explanation is that images per default are inline elements and therefore has to be aligned with neighbor inline elements, i.e. text. Per default this alignment will place images and letters on the same baseline. Since some letters, like j and g have parts below the baseline, the layout must reserve this space below the baseline for such characters. Result: The next block level element has to be places at least approx. 3 pixels below the image (depending on font-size and so on).
This is a workaround (it is mentioned in the answer to this question):
- placing the image tag between the surrounding tags with no spaces or linebreaks between, because that will prevent the layout engine from producing a text-element to align with the image. Just one single space or newline character is enough to break the layout, and therefore the css solution is recommended.
Firefox doesn't exhibit this 'problem', - in short because it is not behaving according to css standards.
(Main source: http://www.quirksmode.org/css/quirksm...)
Nov 24, 2013 - 09:53 PM
Source: http://www.frompo.com/
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
About Quomon
Quomon is a network of IT professionals from around the world, collaborating by sharing knowledgeable answers in their specific field of expertise.
Please wait...
Add New Comment