Weird behaviour on Autocomplete with (left-)padding-left

2 posts, 0 answers
  1. Tayger
    Tayger avatar
    122 posts
    Member since:
    Jan 2015

    Posted 08 Nov 2015 Link to this post

    Its ok the Telerik widgets come also with its own CSS styles. I have the requirement to add a left-padding on a autocomplete widget but doing so the widget shows weird displaced items on screen. I have prepared a simple example you can try right away:

    It does the padding as you can see when clicking on the input textbox. But there is a grey area in the background that looks displaced. Any reasons why and how I can fix it?

    <!DOCTYPE html><br>
        <meta charset="utf-8"><br>
        <title>Kendo UI Snippet</title><br>
        <link rel="stylesheet" href=""><br>
        <script src=""></script><br>
    <div id="autocompletediv"><br>
    <input id="autocomplete" name="autocomplete" class="b_shadowrightdown" style="padding-left:20px;"><br>
      dataSource: {<br>
        data: ["One", "Two"]<br>

    Kind Regards


  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 10 Nov 2015 Link to this post

    Hi Tayger,

    When initialized Kendo UI AutoComplete widget is wrapped in a <span> element (inspect the rendered HTML). Take a look at this dojo which demonstrates a possible implementation of the desired outcome. 

    Iliana Nikolova
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top