Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li><span></span> The lazy dog.</li>
- <li><span>AND</span> The lazy cat.</li>
- <li><span>OR</span> The active goldfish.</li>
- The lazy dog.
- AND The lazy cat.
- OR The active goldfish.
- <style type="text/css">
- ul
- {
- list-style-type: none;
- padding-left: 0px;
- }
- ul li span {
- float: left;
- width: 40px;
- }
- </style>
- <style type="text/css">
- span {
- display: inline-block;
- width: 50px;
- }
- </style>
- <style type="text/css">
- div.f1 { float: left; width: 20px; }
- div.f2 { float: left; }
- div.f3 { clear: both; }
- </style>
- <div class="f1"></div><div class="f2">The Lazy dog</div><div class="f3"></div>
- <div class="f1">AND</div><div class="f2">The Lazy cat</div><div class="f3"></div>
- <div class="f1">OR</div><div class="f2">The active goldfish</div><div class="f3"></div>
- <html><head>
- <style type="text/css">
- span.f1 { display: block; float: left; clear: left; width: 60px; }
- li { list-style-type: none; }
- </style>
- </head><body>
- <ul>
- <li><span class="f1"> </span>The lazy dog.</li>
- <li><span class="f1">AND</span> The lazy cat.</li>
- <li><span class="f1">OR</span> The active goldfish.</li>
- </ul>
- </body>
- </html>
- <style type="text/css"> span { width: 50px; display: block; } </style>
- <li><span> </span>something</li>
- <li>span>AND</span>something else</li>
- <li><span></span><strong>The</strong> lazy dog.</li>
- <li><span>AND</span> <strong>The</strong> lazy cat.</li>
- <li><span>OR</span> <strong>The</strong> active goldfish.</li>
- li {position:relative;padding-left:80px;} // 80px or something else
- li span {position:absolute;top:0;left:0;}
- li strong {color:red;} // red or else
- <style type="text/css">
- span {
- position:absolute;
- width: 50px;
- }
- </style>
- <style>
- ul{
- text-indent: 40px;
- }
- li{
- list-style-type: none;
- padding: 0;
- }
- span{
- color: #ff0000;
- position: relative;
- left: -40px;
- }
- </style>
- <ul>
- <span></span><li>The lazy dog.</li>
- <span>AND</span><li>The lazy cat.</li>
- <span>OR</span><li>The active goldfish.</li>
- </ul>
- <li><pre> The lazy dog.</pre></li>
- <li><pre>AND The lazy cat.</pre></li>
- <li><pre>OR The active goldfish.</pre></li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement