SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    San Francisco Bay Area
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape inserts line breaks after <a class="...">

    Does anyone have a workaround for this? I have found that Netscape, in all its wonderful logic, inserts a line break after <a> tags that have a CSS class.

    Here is an example

    Here is the code for the CSS class, link:

    .link{
    font-size : 14px;
    font-family : Arial, Tahoma, Serif;
    font-style: normal;
    text-align: left;}

    Once again... I am befuddled by Netscape.

    Your help is appreciated.

  2. #2
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NN4 should handle using class & id for <a> tags.

    I think the problem is the inline style declarations in the <hr> & <p> tags.

    NN4 does goofy things when it encounters inline style declarations.

  3. #3
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape inserts line breaks after <a class="...">

    Originally posted by telark
    .link { ... text-align: left;}
    Why are you aligning the contents of an inline element? That may be your problem.

    ~~Hope This Helps

  4. #4
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re: Netscape inserts line breaks after <a class="...">

    Originally posted by Ian Glass
    Why are you aligning the contents of an inline element? That may be your problem.
    Indeed, good job Ian.

    The text-align property doesn't apply to in-line elements like <a>. Other browsers are ignoring this but Netscape is being tempermental as usual.

  5. #5
    SitePoint Member
    Join Date
    Jul 2001
    Location
    San Francisco Bay Area
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thank you both!

    Thank you - that had not occurred to me - and I have no idea why the text-align attribute was there.

    I appreciate your help.


Bookmarks

Posting Permissions

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