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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

First line of text overflows from div container

Go to End

5 Posts   1785 Views


Community Member, 13 Posts

30 July 2009 at 3:50am

Edited: 30/07/2009 3:51am

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.


Community Member, 57 Posts

6 August 2009 at 3:06am

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

Have you positioned it absolutely?


Community Member, 712 Posts

6 August 2009 at 4:52pm

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


Community Member, 13 Posts

11 August 2009 at 3:03am

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


Community Member, 13 Posts

11 August 2009 at 8:19am

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.