text-align: center;
So if you are using h3 tags for your title, you would add this to your css file:
h3.collapseomatic {
text-align: center;
}
Also, please supply a link to your project or page where you are experiencing problems.
This is the code I am using:
<td class=”simplej” colspan=”2″>[expand title=”ABSTRACT” trigclass=”noarrow” rel=”FGV19P1M1″ id=”FGV19P1M1″ startwrap=”” endwrap=”” tartag=”normal”]Two new endemic species of <i>Hypolepis</i> are described from the Mount Roraima region, in northern South America: <i>Hypolepis trinationalis</i> and <i>Hypolepis krameri</i>. Also, the list of species occurring in the three Guianas is updated, with a revised key.</td>[/expand]
and you can see it working here:
http://www.andrew-leonard.co.uk/wordpress/publications/the-fern-gazette/the-fern-gazette-volume-19-part-1-2/
When I say “Title” I am talking about the “[expand title =”ABSTRACT”…
I am not using h3 (as far as I know)
I am sorry to say your solution does not work on my system
Ugh!
I can see what my problem is:
my class of “simplej” does text justification which is what I want for the text to be expanded but I want the “title” to be centered.
Because I am doing this with a <td> I don’t know how to do this – does that make more sense?
I should try to make this problem clearer
I want the title (the thing you click on to expand the text) to be centered but I want the text(the thing that gets expanded) to be justified
I cannot get this to work, either everything is centered or everything is justified
Any real need to use tables?
Why don’t you use a header tag for the title (like <h3>)
And a <div> for the content
Then you can style the two seperately
Thanks for your help
It got me thinking
You are right -I don’t need it in a table
I modified some CSS that someone at Collapse-o-matic gave me:
.gazette-expander2 .collapseomatic_content {
margin-top: 20px;
text-align:justify;
font-size: 14px;
}
.gazette-expander2 .collapseomatic {
margin-bottom: -30px;
text-align:center;
font-size: 14px;
font-weight: bold;
}
There is extra stuff in here that I seem to need for theme twenty fourteen but basically it centers the “title” and justifies the “content”
Thanks for your help
A pleasure
Please mark this thread as resolved
Plugin Author
Baden
(@baden03)
Good job guys! Please don’t forget to vote for pedro!