11 years ago
Topic

Have a rather basic question (borderline retarded) I was hoping someone could help me with... 


Been trying to find where to format the content view in terms of the text display. My problem is that the text included from some of the fields goes into the column with field name (see attached pic). Presume its a very easy solution, just unable to find where to do it!


Any help would be greatly appreciated!!


IMAGE

Get a VIP membership
11 years ago
4
Level 1

Hi Filip,

Have you found a solution?

Regards,
Mehdi.

11 years ago
3
Level 2

No, unfortunately not... 


Do you know how I can solve it?

310 Posts
ricco
11 years ago
2
Level 3

Hi,


The easy way is to put this code in your template:


.cck_value {
display: table-cell;
}


The better way is to put a Markup (class) to the fields in the Content view and then style your class in the template.


Best regards

Ricco

11 years ago
1
Level 4

Thanks! Got it to work... 

11 years ago
0
Level 5

Sorry to come back to this topic. I actually solved this by taking away the title... not by adding the code. However, for some other fields, I can no longer do this. 


As I have not created my own template, I tried adding the suggested code to the file under templates/seb_table/CSS/base.css. Did not work, so im presuming ive done something stupid ;)


Problem is still the same as with the image attached above. Any help would be much appreciated!!

310 Posts
ricco
11 years ago
6
Level 1

Hi,


you need to add a custom stylesheet like this for example if you are using a rockettheme template: http://www.gantry-framework.org/documentation/joomla/tutorials/custom_stylesheet.md


and then add the css code there.


Regards

Ricco

11 years ago
5
Level 2

Thanks again!


Adding a custom template did not do the trick :( Also tried to editing the template.css directly to see if adding it there would change the layout... but the text still goes across the page. 


Any ideas?

310 Posts
ricco
11 years ago
4
Level 3

Hi,


Could we have a link to the page you want to style?


Did you make the custom stylesheet?


Regards

Ricco

11 years ago
3
Level 4

Of course, its available under http://policydatabase.boku.ac.at (guest login is user: guest, password: hello123). 


Direct link to one of the content pages is http://policydatabase.boku.ac.at/index.php/forest-innovation-database/list-cases/180-2013-09-29-16-23-41


Yes, I also made the custom css (adding the code you suggested). Tried to look at the wrapping as well as to see if that would do the trick, but without success. 

310 Posts
ricco
11 years ago
2
Level 5

Like I told you, put this code in your custom stylesheet:


.cck_value {
display: table-cell;
}

11 years ago
1
Level 6

Sorry if I seem retarded, but thats what I have done... 


Added a template-custom.css file with the overriding rule, but it doesn't change anything. After looking through firebug I also tried to add custom versions of other css files that are being read. Still no effect. 


Anyway, I think I will just give up now. Thanks a lot for taking a look and for your time!! Its truly appreciated!!

11 years ago
0
Level 7

Final post... I managed to solve the problem by editing the template css itself. Never got the overriding rule to work through a custom template. Added:


#rt-mainbody .cck_value{
display: table-cell;
}

Annoying part with this solution is that any updates to the template would most likely remove this addition ;)


Thanks once again for setting me on the right path!

Get a Book for SEBLOD