Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,994
    Thanks
    120
    Thanked 76 Times in 76 Posts

    extra space in display ?



    Ok there is a space(generated by FF) in html after "Pholiota lenta", but don't mind that, I can do it without it and the display is exactly the same. Space is also before html "Pholiota lenta" and as you can see, there is no space before it in display.

    Code:
    .nav_enabled
    {
      font-family:'Andale Mono','Courier New',Lucidatypewriter,Fixed,Monospace,serif, sans-serif, monospace, cursive,fantasy;
      padding-left:2px;
      padding-right:2px;
      text-decoration:none;
      outline: none;
      border: 1px solid gray;
      color:black;
      background:#FFFFE0;
      /*some corrections on  firefox*/
      line-height:1.4;
    }
    
    
    .nav_enabled a
    {
     /*it is basicaly copy of stuff from nav_enabled class*/   
     font-family:'Andale Mono','Courier New',Lucidatypewriter,Fixed,Monospace,serif, sans-serif, monospace, cursive,fantasy;
     text-decoration:none;
     outline: none;
     color:black;
    
    }
    Any thought ?
    Last edited by BubikolRamios; 11-10-2013 at 08:00 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    Quote Originally Posted by BubikolRamios View Post
    Any thought ?
    DOM inspectors don't show literal code, so those spaces may not necessarily be in the code. I'm not sure how things are styled in Firebug since I don't use that add-on, but it looks like those spaces are just there for readability. Even if those spaces were really there, the spaces would just be ignored because they're inside the edges of an element boundary.

    The space shown in your picture appears to be because of space between the a and img elements in your code.

    Quote Originally Posted by BubikolRamios View Post
    Code:
     font-family:'Andale Mono','Courier New',Lucidatypewriter,Fixed,Monospace,serif, sans-serif, monospace, cursive,fantasy;
    Lucida Typewriter has a space in the font name.

    And you should only use one font family keyword per declaration since all of the following keywords will just be ignored. In this case, the keyword applied would be monospace. The five keywords after it will be ignored. fixed isn't a valid keyword and will match a font named "Fixed".
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •