h3 class not being honored

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1943
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

h3 class not being honored

Post by kinerity » Sun Aug 12, 2018 1:41 am

I have the following code in my CSS file for my extension:

Code: Select all

h3.info {
	float: left;
	font-size: 1em;
	color: #000000;
	font-weight: bold;
	padding: 2px 0 0 0;
	margin-top: 0;
	margin-bottom: 0.3em;
	text-transform: none;
	border: none;
	font-family: "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
	line-height: 125%
}
The template code I have is as follows:

Code: Select all

<div id="post{ticket_posts.ID}" class="post <!-- IF ticket_posts.S_ROW_COUNT is even -->bg2<!-- ELSE -->bg1<!-- ENDIF -->">
	<div class="inner">

	<div class="postbody" style="width: 100%;">
		<h3 class="info">
		<a href="#post{ticket_posts.ID}"><i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i></a> {L_POSTED_BY} {ticket_posts.USER}<!-- IF ticket_posts.USER_RANK --> ({ticket_posts.USER_RANK})<!-- ENDIF --> &raquo; {ticket_posts.TIMESTAMP}<!-- IF ticket_posts.S_PRIVATE --> - {L_PRIVATE}<!-- ENDIF -->
		</h3>

		<div class="content">
			{ticket_posts.TEXT}
		</div>
	</div>

	</div>
</div>
It's supposed to look like this:
tracker_correct.png
tracker_correct.png (2.83 KiB) Viewed 299 times

Instead, it looks like this:
tracker_incorrect.png
tracker_incorrect.png (3.33 KiB) Viewed 299 times

Thoughts? I've tried adding !important to the font-size and color elements but nothing helps.
Last edited by kinerity on Sun Aug 12, 2018 5:38 pm, edited 1 time in total.
Reason: Topic icon changed
Kailey Truscott - Community Team

User avatar
AbaddonOrmuz
Registered User
Posts: 407
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: h3 class not being honored

Post by AbaddonOrmuz » Sun Aug 12, 2018 3:56 am

Do you have a link? Check it with the web inspector of your browser, maybe it's being overridden by another class or not being recognized at all.
A proudly user of Arch Linux :: /r/sddm_themes

User avatar
david63
Jr. Extension Validator
Posts: 14911
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: h3 class not being honored

Post by david63 » Sun Aug 12, 2018 7:06 am

Probably a silly question but is the css being loaded?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
pit-PL
Registered User
Posts: 3069
Joined: Sat Nov 21, 2009 12:24 pm

Re: h3 class not being honored

Post by pit-PL » Sun Aug 12, 2018 10:50 am

Try .postbody h3.info

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1943
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: h3 class not being honored

Post by kinerity » Sun Aug 12, 2018 5:34 pm

AbaddonOrmuz wrote:
Sun Aug 12, 2018 3:56 am
Do you have a link?0
Unfortunately, no.
david63 wrote:
Sun Aug 12, 2018 7:06 am
Probably a silly question but is the css being loaded?
Yes, the rest of the page is honoring the other CSS I have in the same file.
pit-PL wrote:
Sun Aug 12, 2018 10:50 am
Try .postbody h3.info
No change, still looks the same.

Scratch that, adding .postbody along with !important on the font-size and color elements works. Thanks!
Kailey Truscott - Community Team

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20954
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: h3 class not being honored

Post by RMcGirr83 » Sun Aug 12, 2018 8:22 pm

Why are you using <h3>?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

tomberaid
Registered User
Posts: 9
Joined: Wed Dec 20, 2017 8:11 pm

Re: h3 class not being honored

Post by tomberaid » Sun Aug 12, 2018 9:24 pm

Hello
Try h3.info > a

Edit :
Sorry, my answer was stupid because the link only contains the icon.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests