Line breaks with default theme

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
BrainDamage
Posts: 3
Joined: Tue Dec 20, 2005 1:32 am

Line breaks with default theme

Post by BrainDamage »

Hi !

I just installed s9y !

Well, when I use the default theme, my entries don't have any line breaks between paragraphs... But when I switch to any other theme I get the line breaks ! :shock:

What do I have to change in my CSS file so I get it repaired ?

here's a link : http://braindamage.nextrock.com/

Thanks !
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Line breaks with default theme

Post by garvinhicking »

This is a "feature" of the default theme. Because of WYSWIYG editors being often used in the default theme, the paragraphs with spacings made problems when a background color was selected, or when people press "Enter" instead of "Shift-Enter" to produce linebreaks.

You can change it easily by editing your style.css file and insert a CSS line like

Code: Select all

p {
 margin: 5px;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
BrainDamage
Posts: 3
Joined: Tue Dec 20, 2005 1:32 am

Post by BrainDamage »

I added the line to style.css but still have the same problem...

Any other advise ? :roll:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I just looked at your blog, but you did not add the code I suggested.

You need to insert this at the bottom of style.css:

Code: Select all

.serendipity_entry p {
    margin: 25px;
    padding-bottom: 0px;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
BrainDamage
Posts: 3
Joined: Tue Dec 20, 2005 1:32 am

Post by BrainDamage »

Works now !!!!

Thank you a lot !!!!!!!!! :lol:
Post Reply