Removing indent from unordered list

  • Unknown's avatar

    Hi,

    I have added icons to a contact widget located at the bottom of my home page. I have used the following to align the information with the icons:

    <ul id="services-list">
    <li>
      <a class="image">
        <img src="https://akrosstranslations.files.wordpress.com/2015/12/phone391-1-copy.png" alt="Mobile Icon" />
      </a>+44 (0) 77 7514 XXXX
    </li>
    <li>
      <a class="image">
        <img src="https://akrosstranslations.files.wordpress.com/2015/12/mail-icon2.png" alt="Mail Icon" />
      </a>(email visible only to moderators and staff)
    </li>
    <li>
      <a class="image">
        <img src="https://akrosstranslations.files.wordpress.com/2015/12/map35.png" alt="Map Icon" />
      </a>London, United Kingdom
    </li>
    </ul>

    Now, due to the addition of those icons, the email address does not fit in in line with its corresponding icon. Other than removing the icons, I thought perhaps the automatic indent could be removed to make more room for it. Would anyone know how to do that?

    Thank you

    The blog I need help with is: (visible only to logged in users)

  • Hi there…

    donyapress.wordpress.com is not the blog you would like help with, isn’t it? :) If it is, please, could you give us the exact page where you can find this list?

    Have a great day!

  • Unknown's avatar

    No, my apologies, it’s not the one indexed by wp in my post. It’s akrosstranslations.com

  • Unknown's avatar

    We can target that specific text widget by its unique CSS id and remove the left margin on the ul element with this.

    #text-2 ul {
        margin-left: 0;
    }

    Note that all browsers render things slightly differently, so while this may appear all on one line in one browser, it may not in all. In addition, users can make changes to the preferences (default font size) or can zoom in or zoom out, so there is no guarantee everyone is going to see the email address on one line.

  • Unknown's avatar

    Thank you thesacredpath, sadly that does not do the trick. Every targeted bit I have tried inserting before was visible on the site. Perhaps have I extended the template’s code to its limits in this case.

  • Unknown's avatar

    Hi, I just went to Customize > CSS and added the code I gave and it took away the indent on your contact text widget. Where were you inserting the code?

  • Unknown's avatar

    I got it, I did not know I should add it there, i’m still pretty new to this but thank you so much for your help and for your time. It’s very much appreciated.

  • Unknown's avatar

    Hooray and you are welcome! Sorry for not being more clear on where that went.

  • The topic ‘Removing indent from unordered list’ is closed to new replies.