CSS Tabulator
Tip by Progger99 | 2012-05-26 at 11:36
Sometimes it would be nice to have something like a tabulator in CSS. A function like in a text editor or in Word, where you can quickly and easily create a flush text with columns without having to work with complicated tables or DIV-blocks.
Unfortunately, there in CSS there is (still) no easy way to create such a tab, unless we use the following trick:
.csstab { width: 100px; display: block; float: left; }
Example
And here is an example of how to use it:
<span class="csstab">Name</span>Rudi<br> <span class="csstab">Mail</span>rudi@example.com
And it looks like this:
NameRudi
Mailrudi@example.com
About the Author
The author has not added a profile short description yet.
Show Profile
Related Topics
CSS: Include CSS Stylesheets in HTML
Tutorial | 0 Comments
How to Replace multiple Texts at the same Time
Tutorial | 0 Comments
Website Performance: Deliver JavaScript and CSS files compressed to reduce loading times
Tutorial | 0 Comments
MySQL: Combine full text search with LIKE search for words with 3 letters
Tutorial | 2 Comments
MySQL: Line Breaks in MySQL
Tip | 0 Comments
MySQL: 3 Ways of showing Table Definition and Structure
Info | 0 Comments
Reload Images, CSS, JS and Web Pages despite Browser Cache
Tip | 2 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.