VIRB° BLOG

It's like watching your favorite movie. At the director's house. A month before it premieres. And you get to help choose the ending.

Help us to help you to help us make Virb better. Talk to us about new features, learn how to customize your profile, and more...

Read an entry

CSS Tips Basic: Line Height

Let's start with line spacing. Sometimes large blocks of text can be hard to read, and you may not want to increase the font-size to make it easier to read. Here are three paragraphs:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The first paragraph has reduced line spacing. The second one is the VIRB default. The third paragraph has extra spacing between lines. The CSS code for that is:

line-height: 2em;

What are 'em's?

An 'em', pronounced just like it is written, is the height or width of the specific font style (size, family) you are using.

(Originally posted by chrysb on April 4, 2007)

posted by Brad under Profile Customization

16 APR 2007

5 Comments

5 Comments

Nice read, and for those who want to update their virb profile, find the right class in your page source, then go to advanced and update that class with the line hight.

.test { something: blah; } line-height: 2em;

will not work, it has to be inside the brackets for the class.

.test { something: blah; line-height: 2em; }

posted by Floris Fiedeldij Dop on April 20, 2007 at 2:56am

For the uninformed, those of you who have never read Cicero's "De Finibus et Malorum" ("The Extremes of Good and Evil"), here it is in English (well, sections 1.10.32 – 1.10.33) at least:

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?

On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business is will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.

posted by citizen zombie. on April 22, 2007 at 11:48pm

Hey, where can I go on here to get some basic customization help? I want to put my own image in the top module area, and am not too fluent with CSS and HTML. thanks

posted by adam on April 24, 2007 at 7:18pm

I've found that IE doesn't render em's properly (at least for font-size, they often end up being too big compared to other browsers). One alternative is to use percentages instead.

.someClass { font-size:90%; line-height:150%; }

posted by Mike on April 27, 2007 at 11:49am

okay I'm in need of some help. I created my profile in Internet explorer and now i am using firefox but when i switched over to firefox it showed my profile background to be the default gray and have the virb adds right next to my picture. I don't know how to remove this or get it back to the way it was. help please?

posted by Jessica on July 4, 2007 at 2:56pm

Browse Topics
Are you new to Virb?

Hello and welcome. Maybe you don't exactly know what Virb is? Then, we'd suggest you go and get yourself a new account. Give it a spin. Make some friends. Listen to music. We think you'll like it here.

VirbTunes

Watcha listenin’ to? Download VirbTunes to display recently played iTunes songs on your profile.

Flickr Integration

Put your Flickr photostream on VIRB faster than you can say hello! (or Bonjour! Hola! Kia Ora! Moya!)

Widescreen Videos

Clear, high-quality widescreen video, meet VIRB. Say, you two look really good together.