Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. List problem. Please, help me out.

List problem. Please, help me out.

Scheduled Pinned Locked Moved Web Development
helpquestioncsswpfcom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shapper
    wrote on last edited by
    #1

    Hello, I created a form which is built mostly with ordered lists: http://www.27lamps.com/public/Beta.htm I am having a few problems. All of them inside a DIV to which I am applying the class "ListBox" 1. ListBox is not being applied to the child tags of that DIV, i.e., OL and LI. They have the styles defined by parent class. How can I solve this? 2. My second problem is how to clear floats on my ol. I applied the overflow approach to my OL tag but this does not seem to work. Note that I am trying to display 3 LI per row simulating a table. Could someone, please, help me out? And I am open to any suggestion which might improve my CSS on this form. I have been working on this for quite a while but I know I can still improve it. Thank You, Miguel

    J 1 Reply Last reply
    0
    • S shapper

      Hello, I created a form which is built mostly with ordered lists: http://www.27lamps.com/public/Beta.htm I am having a few problems. All of them inside a DIV to which I am applying the class "ListBox" 1. ListBox is not being applied to the child tags of that DIV, i.e., OL and LI. They have the styles defined by parent class. How can I solve this? 2. My second problem is how to clear floats on my ol. I applied the overflow approach to my OL tag but this does not seem to work. Note that I am trying to display 3 LI per row simulating a table. Could someone, please, help me out? And I am open to any suggestion which might improve my CSS on this form. I have been working on this for quite a while but I know I can still improve it. Thank You, Miguel

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      shapper wrote:

      http://www.27lamps.com/public/Beta.htm

      1. You can define styles for the ol and li elements with .ListBox ol, and .ListBox ol li. Some styles are not inherited and you will need to explictly define them 2. Floats can be cleared with the 'clear: both' CSS attribute

      B 1 Reply Last reply
      0
      • J Johnny

        shapper wrote:

        http://www.27lamps.com/public/Beta.htm

        1. You can define styles for the ol and li elements with .ListBox ol, and .ListBox ol li. Some styles are not inherited and you will need to explictly define them 2. Floats can be cleared with the 'clear: both' CSS attribute

        B Offline
        B Offline
        bartedgerton
        wrote on last edited by
        #3

        Everything he said: also, li elements are block elements by default, so be sure to do something like this if you want them to appear on the same row: .ListBox ol li { display:inline; margin-right:1em; } Good Luck! Bart Edgerton www.ewebdev.net

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups