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 » Tue Dec 20, 2005 1:35 am

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 !

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Line breaks with default theme

Post by garvinhicking » Tue Dec 20, 2005 2:19 pm

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 » Wed Dec 21, 2005 3:42 am

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

Any other advise ? :roll:

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Dec 21, 2005 3:59 am

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 » Wed Dec 21, 2005 2:24 pm

Works now !!!!

Thank you a lot !!!!!!!!! :lol:

Post Reply