30
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

パンくずの区切りを css だけで作る

Last updated at Posted at 2013-07-31

例えば、下記の様なhtmlの場合、

<style type="text/css">
<!--
ul li {
    display: inline;
}

ul li+li:before {
    content: '\00a0->\00a0';
}
-->
</style>

<ul>
    <li>1階層</li>
    <li>2階層</li>
    <li>3階層</li>
    <li>4階層</li>
</ul>

こんな感じで表示できます。

スクリーンショット 2013-07-31 12.37.29.png

html部分がかなりスッキリとかけるのでおすすめです。

30
30
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?