DCSIMG
Double line in microsoft.co.il Blog posts... - Gilad Lavian's Blog

Gilad Lavian's Blog

In Development

Double line in microsoft.co.il Blog posts...

If you have a blog at blog.Microsoft.co.il, then you familiar with the Double line when pressing enter.

It happens because every time we press enter, the editor automatically add a new <p></p> and wraps the text in the line.

Now, by default, the margins for this tags <p></p> (top, bottom) are very high, I think its 7-10px approximately.

 

To prevent this for happening, you only need to override a CSS class in the "My Blog Dashboard", just add the next code:

.post p { margin-top:3px; margin-bottom:3px; }  
 

you can easily change the top or the bottom margins, just change it from 3px to 0px and see what happens...

Also, don't forget to update your Windows Live Writer with the Blog setting, if you using one:

Weblog --> Edit Weblog Settings --> Editing --> Update Style

תוכן התגובה

Yosi Taguri כתב/ה:

nice tip :)

# July 18, 2007 7:16 AM

Gilad Lavian כתב/ה:

I know, thanks :-)

# July 18, 2007 9:49 AM
שלח תגובה

(שדה חובה)  

(שדה חובה)  

(אופציונלי)

(שדה חובה) 

Please add 7 and 2 and type the answer here:


Enter the numbers above: