The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Jan 01, 2013 12:20 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Dec 05, 2012 6:55 pm
Posts: 62
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?


Top
 Profile  
 
PostPosted: Tue Jan 01, 2013 1:23 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 30, 2006 3:03 pm
Posts: 328
Location: London, UK
http://docs.joomla.org/Page_Class_Suffix is how I would do that

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


Top
 Profile  
 
PostPosted: Tue Jan 01, 2013 11:21 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Dec 05, 2012 6:55 pm
Posts: 62
Am sorry to sound thick but I can't find an advanced section in the Menu edit screen?


Top
 Profile  
 
PostPosted: Tue Jan 01, 2013 11:34 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 30, 2006 3:03 pm
Posts: 328
Location: London, UK
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


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 2:48 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Dec 05, 2012 6:55 pm
Posts: 62
Thanks very much for that, this will solve a lot of problems for me on my site.


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 2:59 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Dec 05, 2012 6:55 pm
Posts: 62
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?


Top
 Profile  
 
PostPosted: Wed Jan 02, 2013 4:24 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sat Dec 30, 2006 3:03 pm
Posts: 328
Location: London, UK
If you take a look at the h2 titles you want to centre, they probably have a 'class' atrribute. Something like
Code:
<h2 class="article-title">Example title</h2>

So if you add a rule in your CSS that says
Code:
.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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 



Who is online

Users browsing this forum: No registered users and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group