Setting Page Header Container the Same Width as Title

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
JohnSmithers
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 227
Joined: Mon Feb 11, 2013 9:22 am

Setting Page Header Container the Same Width as Title

Post by JohnSmithers » Mon Dec 04, 2017 6:42 pm

I have a page with multiple articles. Each article has a different title, with variable widths. I am looking to use the page-header class to wrap the title with a background and a border. However I have yet to find a solution for this; the page-header scans 100%.

Can anyone recommend a solution to ensure the page-header matches the width of the text of the title?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44096
Joined: Sat Apr 05, 2008 9:58 pm

Re: Setting Page Header Container the Same Width as Title

Post by Webdongle » Mon Dec 04, 2017 7:27 pm

url please
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JohnSmithers
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 227
Joined: Mon Feb 11, 2013 9:22 am

Re: Setting Page Header Container the Same Width as Title

Post by JohnSmithers » Wed Dec 13, 2017 1:17 pm

Got it:

.page-header a {

etc

}


Locked

Return to “Templates for Joomla! 3.x”