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.

Template Questions /

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

First line of text overflows from div container


Go to End


5 Posts   2225 Views

Avatar
neogin

Community Member, 13 Posts

30 July 2009 at 3:50am

Edited: 30/07/2009 3:51am

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.

Avatar
joshy

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?

Avatar
Hamish

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.

Avatar
neogin

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.

Avatar
neogin

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.