Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Single line break in cms


Reply


3 Posts   1620 Views

Avatar
themagician

Community Member, 5 Posts

4 February 2009 at 1:36am

Edited: 04/02/2009 1:36am

This is a really stupid question but i'm finding the format drop down menu in the cms a bit difficult to use - how do i write text without having a paragraph added when i hit return? i've tried "address" and this works but it changes it to italics everytime and i can't find it anywhere in the typography.css to change. The headings also revert back to paragraph when i hit return. Help, i'm pulling my hair out!!

Avatar
SalvaStripe

Community Member, 89 Posts

4 February 2009 at 2:43am

thats very easy!!!

first, you have so set

p {
margin:0;
padding:0;
}

in your layout.css.
the same thing you have to do in your typography.css, this is for your cms editor.

then, you can use the cms editor, press ENTER and normal new line like "<br />" will be shown.

################## PS ############
this will be nicer a lil bit!

p {
margin:0;
margin-bottom:3px;
padding:0;
}

Avatar
themagician

Community Member, 5 Posts

5 February 2009 at 12:04pm

thankyou!