#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    london, UK
    Posts
    6
    Rep Power
    0

    CSS in Netscape 4.5 for mac - some probs


    Hi,

    I'm working on a site at the moment, and to my horror found that on Netscape 4.5 for the Mac, some of the text looks unusually tiny. Not all of the text, just one or two words or paragraphs here and there.

    It usually occurs when different styles ie. <span></span> tags are used on the same line. Does anyone know of a way to stop this happening?

    A particular page on which it occurs is http://www.skill.org.uk/dev/shared/accessibility.htm, from the word 'WAI' to the end of the paragraph. It doesn't occur under NS 6/Opera/IE latest versions, or IE older versions, so why is it happening on the Mac version of NS 4.5?

    Any enlightenment anyone could give me would be gratefully recieved.

    Thanks,

    Hannah
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Wilmslow, Cheshire
    Posts
    255
    Rep Power
    18
    Might be worth leaving all the body text within one SPAN tag and then giving the anchor tags their own class within that tag, like:

    <a href="http://www.w3.org/WAI/" target="_blank"
    title="WC3's Web Accessibility Initiative" class="ulredbody">WAI</a>

    instead of:

    <a href="http://www.w3.org/WAI/" target="_blank"
    title="WC3's Web Accessibility Initiative"><span class="ulredbody">WAI</span></a>

    I'm not able to check if it's the nested SPAN tags which are causing the problem, but it's got to be worth a go?
  4. #3
  5. T-Shirt Tragic
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2001
    Location
    Melbourne, Australia
    Posts
    886
    Rep Power
    321
    hannah,
    using ns4.5 on a mac I looked at your url and saw exactly what you're talking about... I copied the source and went through it removing line breaks within tags.. for example wherever I saw something like:
    Code:
    <a href="http://www.w3.org/WAI/" target="_blank" 
    title="WC3's Web Accessibility Initiative">
    I changed it to :
    Code:
    <a href="http://www.w3.org/WAI/" target="_blank"  title="WC3's Web Accessibility Initiative">
    this tidies up the code quite a lot, making it easier to understand and lo and behold it solved your problem..
    I put the file I edited online for you to look at:
    http://www.fridge.unsw.edu.au/styleTest/skill.html

    I dunno why NS dropped its bundle at line breaks within tags.. I thought browsers were supposed to ignore such things.
  6. #4
  7. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    "Netscape cannot parse to save its life."

  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    london, UK
    Posts
    6
    Rep Power
    0

    thankyou!


    Thanks dang and Johnathon, you're stars!

    I will try putting the class name within the <a></a> tags when there's a link, instead of nested. And I will delete 'space' in the source code. Spaces/line breaks within the source aren't supposed to affect anything, but if that's the cause of the problem, then grrrrr!! I'll delete them!

    Thanks,
    Hannah

IMN logo majestic logo threadwatch logo seochat tools logo