2 replies [Last post]
nanacss
nanacss's picture
Offline
Enthusiast
Last seen: 6 years 45 weeks ago
Timezone: GMT+8
Joined: 2007-07-27
Posts: 107
Points: 22

Hi there,

I get this set of nested ul and li work nicely, but there is a problem ("FOR BUSINESS" AND "FOR INDUSTRIAL" go up same as the second set of ul):

the nested ul:


  • FOR HOME

    • Air Conditioners

    • Refrigerators

    • Home Cinema Projectors

    • Fans

      • Tatami Fans

      • Desk Fans

      • Living Fans

      • Cycle Fans

      • Wall Fans

      • Ventilator Fans





  • FOR BUSINESS

  • FOR INDUSTRIAL


The above code works nicely in IE6, but not firefox. I hav no idea y is it. But it can looks good in Firefox if I shift the closing li from "FOR HOME" to the top like :

  • FOR HOME
    • Air Conditioners
    • Refrigerators
    • Home Cinema Projectors
    • Fans
      • Tatami Fans
      • Desk Fans
      • Living Fans
      • Cycle Fans
      • Wall Fans
      • Ventilator Fans
  • FOR BUSINESS
  • FOR INDUSTRIAL

but if so rite, then when I validate in w3c, i have error, what caused the problem? how do i solve it?

here is the direct link to see the files:
htmlat line 52
cssat line 214

thank you ver much for the help ^^

真诚清静平等真觉慈悲,看破放下自在随缘念佛。
name: WEN YU
my blog: http://webwhalenews.com
my collection: http://gtoystage.com

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 1 week ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

It's because you've put a

It's because you've put a height on #sec_content ul li. IE6 incorrectly expands to contain content despite the height; FF doesn't.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

nanacss
nanacss's picture
Offline
Enthusiast
Last seen: 6 years 45 weeks ago
Timezone: GMT+8
Joined: 2007-07-27
Posts: 107
Points: 22

Hi Tyssen!! Is amazing! It

Hi Tyssen!!

Is amazing! It works nicely right now!!!

Thank you very much!!!

I really appreciate it!!! Thanks! ^^

真诚清静平等真觉慈悲,看破放下自在随缘念佛。
name: WEN YU
my blog: http://webwhalenews.com
my collection: http://gtoystage.com