Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

HTML List Design Like Word - Tabs

I'm currently struggling to implement a list in HTML which looks like this.

Word Screenshot

The important thing for me would be the tab stops obviously. I tried to look for it online, however I'm not native to English and I do not know how you would call the formatting of a list like that.

Kind Regards, Vincenz

question from:https://stackoverflow.com/questions/65861748/html-list-design-like-word-tabs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

not sure if this is what are you looking for?

Are you trying to do a list like this? You sure can add more arrows and all the thigns that you can see here. I have added the arrows in icon fonts, I have not edited it exactly like in your example, because I don't know what exactly do you need.

.list {
    display: inline;
}

.list p {
    display: inline;
}

.year {
    padding-left: 20px;
}

.arrow {
    padding-left: 50px;
}

.text {
    padding-left: 50px;
}
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <link rel="stylesheet" href="style.css" />
    </head>
    <body>
        <ul class="list">
            <li>
                <p class="year">1985 - 1986</p>
                <ion-icon class="arrow" name="arrow-forward-outline"></ion-icon>
                <p class="text">Studien aufhenthalt....</p>
            </li>
            <li>
                <p class="year">1985 - 1986</p>
                <ion-icon class="arrow" name="arrow-forward-outline"></ion-icon>
                <p class="text">Studien aufhenthalt....</p>
            </li>
            <li>
                <p class="year">1985 - 1986</p>
                <ion-icon class="arrow" name="arrow-forward-outline"></ion-icon>
                <p class="text">Studien aufhenthalt....</p>
            </li>
        </ul>
        <script src="https://unpkg.com/[email protected]/dist/ionicons.js"></script>
    </body>
</html>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...