Results 1 to 3 of 3

Thread: div, UL, LI with float having issue in IE only

  1. #1
    Join Date
    Apr 2005

    div, UL, LI with float having issue in IE only

    div-buttonsPanel { position: static; left: 0; top: 0; padding-left:17px;}
    div-buttonsPanel ul { width: auto; margin: 0; clear: clearFloat; }
    div-buttonsPanel li { margin-bottom: 0; float: left; margin-right: 2px; }

    I have the above css.
    I am adding two buttons to the li.
    first time I go to the page the buttons look fine. But when I navigate out of this page and comeback the buttons in li are on top instead of within a div.

    How can I fix this?

    Any help is appreciated. Thanks.

  2. #2
    Join Date
    Sep 2006
    new york
    You need to do some HTML / CSS homework

    For instance, see http://webdesign.about.com/od/advanc.../css-clear.htm for CLEAR property possible values: none; left; right; both;

    http://www.w3schools.com/css/css_positioning.asp POSITION: STATIC is default, which you do not need to declare. position: relative might be useful.

    http://www.w3schools.com/css/css_id_class.asp You can use any HTML element (such a p for paragraph <p> without the < tag > parameters) as a "selector" for a CSS style rule. And you can declare your own independent .CLASS or #ID that can be added to any element. But, when you do so (as you did), you need to precede a .CLASS with a dot/period or a unique #ID with a hash/number mark.

    Please post more of your code and markup to people can see what is going on. If you have an online link, that would be best
    Last edited by auntnini; 02-14-2013 at 04:59 PM. Reason: typos

  3. #3
    Join Date
    Jan 2013
    hi can you help me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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