www.webdeveloper.com
Results 1 to 3 of 3

Thread: Simplest code for "Set margin-left for container..."

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    47

    Simplest code for "Set margin-left for container..."

    Dear Friends!

    After post this bug,
    "Set margin-left for container => its input display wrong"
    I work hard and try to find out solution. Althought simplest isolation code, there is no solution.

    Bug Condition: IE 6.0
    Try:
    * Render in Standards compliance mode of Strict DTD
    * Pass Css Validator
    * Pass Xhtml Validator

    Xhtml:

    Code:
    <form method="post" action="this" id="details">
        <div id="cont_1">
            <input id="contentName" type="text" />
        </div>
    </form>
    CSS:

    Code:
    #details {
      margin: 0px 0px 0px 100px;
      background-color: yellow;
      /*that input#contentName must place on the left of this block 
         but there are space with left border = form magin-left = 100px*/
    }
    
    #details div {
        width: 90%;
    }

    If you have solution, please help.



    How dump IE?(angry)

  2. #2
    Join Date
    Jul 2004
    Location
    Sendai, Japan
    Posts
    1,273
    Try this:
    Code:
    #details {
      margin: 0px 0px 0px 100px;
      display:inline-block;
      background-color: yellow;
    
    }

  3. #3
    Join Date
    Apr 2006
    Posts
    47
    Wow!
    It work. Thanks you.

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



Recent Articles