Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Single line break in cms

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

Page: 1
Go to End
Author Topic: 1576 Views
  • themagician
    Avatar
    Community Member
    5 Posts

    Single line break in cms Link to this post

    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!!

  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Re: Single line break in cms Link to this post

    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;
    }

  • themagician
    Avatar
    Community Member
    5 Posts

    Re: Single line break in cms Link to this post

    thankyou!

    1576 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.