• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Indentation of SubList

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we create a nested list by placing a <ul> under another <ul>, how do we control the amount of identation given to the nested list relative to the upper list?
 
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use CSS for that. Give the nested list some padding-left.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alec,

Please have a look at the following page �
http://jake.cfwebtools.com/index.cfm/2007/5/1/CSS-Browser-Hacks

and look for -


I want there to be no indentation in the list, just a vertical list of links. Also, I don't want any list style



The example below, based on the above page, works well in IE 6 but not in FF. Please play a bit with the margin-left of 'ul li ul'.

Regards,
Dan

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic