<html>
<head>
<style>
.restrict-lines{
//max-height : 40px; /* Display 2 lines */
max-height : 20px; /* Display one line */
overflow: hidden;
}
</style>
</head>
<body>
<h1>How to limit the number of displayed lines using CSS</h1>
<div class="restrict-lines">
Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file!
<div>
</body>
</html>
Error: PG::DuplicateTable: ERROR: relation "taggings" already exists Solution : Already the table present in your database.But migration also trying to create a table in database.For this reason error occurred. So try to remove the table (taggings) from your database. postgresql : > DROP TABLE IF EXISTS taggings; Rails console : > ActiveRecord::Migration.drop_table(:taggings)
Comments
Post a Comment