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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Single line break in cms


Go to End


3 Posts   2989 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!