• Pe chevron_right

      CSS: Center-Align List with Left-Aligned Text (and Unknown Width)

      Jeff Starr · pubsub.slavino.sk / perishablepress · Wednesday, 24 June, 2020 - 20:57 edit

    Here is a quick CSS tutorial showing how to center-align a list element with left-aligned text. For example, if you have an <ul> or <ol> of unknown width, and you want it to stay centered on the page and keep the inner text aligned to the left. That’s the trick we’re looking at in this tutorial. Working on the testimonials page for my new bookstore, I wanted to center align the unordered list without specifying a width. When you specify […]

    Značky: #CSS, #list, #tips, #tricks, #Rozne