Centre Article titles on just one page

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Lemonie
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Dec 05, 2012 6:55 pm

Centre Article titles on just one page

Postby Lemonie » Tue Jan 01, 2013 12:20 am

Hiya

I have some pages where I would like the titles to be centred.

http://jtest.homelesshounds.org.uk/inde ... r-adoption

I don't however want them all centred as when the page is full width I want them to stay left. Any ideas?

User avatar
andypooz
Joomla! Guru
Joomla! Guru
Posts: 538
Joined: Sat Dec 30, 2006 3:03 pm
Location: London, UK
Contact:

Re: Centre Article titles on just one page

Postby andypooz » Tue Jan 01, 2013 1:23 am

Andy Hickey
Bespoke Joomla Extension Developer
http://www.netamity.com

Lemonie
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Dec 05, 2012 6:55 pm

Re: Centre Article titles on just one page

Postby Lemonie » Tue Jan 01, 2013 11:21 pm

Am sorry to sound thick but I can't find an advanced section in the Menu edit screen?

User avatar
andypooz
Joomla! Guru
Joomla! Guru
Posts: 538
Joined: Sat Dec 30, 2006 3:03 pm
Location: London, UK
Contact:

Re: Centre Article titles on just one page

Postby andypooz » Tue Jan 01, 2013 11:34 pm

Make sure you're on the edit screen for the menu item of the page you want to change.
You do not have the required permissions to view the files attached to this post.
Andy Hickey
Bespoke Joomla Extension Developer
http://www.netamity.com

Lemonie
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Dec 05, 2012 6:55 pm

Re: Centre Article titles on just one page

Postby Lemonie » Wed Jan 02, 2013 2:48 pm

Thanks very much for that, this will solve a lot of problems for me on my site.

Lemonie
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Dec 05, 2012 6:55 pm

Re: Centre Article titles on just one page

Postby Lemonie » Wed Jan 02, 2013 2:59 pm

I have inspected the page with firebug and the titles are 'h2'. How would I centre those with out also centering the Category Header as well?

User avatar
andypooz
Joomla! Guru
Joomla! Guru
Posts: 538
Joined: Sat Dec 30, 2006 3:03 pm
Location: London, UK
Contact:

Re: Centre Article titles on just one page

Postby andypooz » Wed Jan 02, 2013 4:24 pm

If you take a look at the h2 titles you want to centre, they probably have a 'class' atrribute. Something like

Code: Select all

<h2 class="article-title">Example title</h2>

So if you add a rule in your CSS that says

Code: Select all

.custom_page_class h2.article-title { text-align:center; }

That should do the job (obviously my class names are examples, not to be copied exactly)
Andy Hickey
Bespoke Joomla Extension Developer
http://www.netamity.com


Return to “General Questions/New to Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 11 guests