Re: Markup error and display errors



Knut Krueger wrote:

http://arnfelser.knut-krueger.de/index.php?db=text:10


3. question
there is a gap over the blue box, any suggestions why?

Actually, that's not so much a gap over the blue box as it is a gap under the bar_r.jpg image.

That gap is there for the descenders (low-hanging parts of letters like y, p, q, g, etc.) in your text. What? You say you don't have any text there? The browser doesn't know that, so you get the extra space by default, just in case.

One way to fix this is to tell the browser there's no text, by giving the img display type block.

img { display:block; }

Try it and test it (in various browsers). You may have to apply an id or class, depending on what other images you have on the page or other pages in the site.


--
John
.



Relevant Pages

  • Re: Change link sensivity area using CSS
    ... cannot get to any of the links of the submenus in any browser. ... Notice the gap? ... used a ton of rollover images but that worked Then ...
    (alt.html)
  • IE7 padding problem
    ... or "StatusBar" for some form panel and these boxes should cover the whole ... 70 with a browser rendering service. ... The gap disappears when I set padding-right: 0px; but then the text at the ...
    (comp.infosystems.www.authoring.stylesheets)
  • Web page displays incorrectly
    ... I'm generating a page using classic ASP. ... It displays fine in that other browser, but IE 7 displays it with a HUGE gap between the first and the table. ...
    (microsoft.public.inetsdk.html_authoring)
  • Web page to small in other browsers
    ... On my browser my website looks good, ... browsers,1" gap left and right side on my web page. ... How do I get a full page, what settings do I use. ...
    (microsoft.public.frontpage.programming)
  • Re: BURT ALERT Re: Is SR pointing to a preferred frame?
    ... through this gap as my arm is fully extended. ... measurement procedure will yield different lengths depending on my ... location and depending on who performs the procedure. ... to meet the simultaneity requirement. ...
    (sci.physics.relativity)