Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » First line of text overflows from div container

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

Page: 1
Go to End
Author Topic: 1368 Views
  • neogin
    Avatar
    Community Member
    13 Posts

    First line of text overflows from div container Link to this post

    Hi,
    I've got an issue, I'm making my first theme and so far so good, but in a particular div, the text goes further than the size of the div container, but only for the first line of the paragraph and only for 30px or so. The text comes from a $content, and there's not fancy float.

    Do you guys have any idea how to resolve that ?

    Thanks to all.

  • joshy
    Avatar
    Community Member
    57 Posts

    Re: First line of text overflows from div container Link to this post

    Can you screenshot what you mean? And show relevant code?

    Have you positioned it absolutely?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: First line of text overflows from div container Link to this post

    Also, this is going to be a CSS issue - not really anything to do with SilverStripe.

  • neogin
    Avatar
    Community Member
    13 Posts

    Re: First line of text overflows from div container Link to this post

    Hi and thanks for your remarks, so I will upload some code and pictures later this evening.

  • neogin
    Avatar
    Community Member
    13 Posts

    Re: First line of text overflows from div container Link to this post

    Hi !
    So I worked it out, it seems like it had something to do with the $content text. As I only design the template I copyied/pasted some dumb text into the CMS, it seems like it didn't like it ( I presume it has to do with text formating )

    Anyway, everything is good now, thanks for all.

    1368 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.