h3 class not being honored

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

h3 class not being honored

Post by Kailey »

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 565 times

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

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

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: h3 class not being honored

Post by AlfredoRamos »

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.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: h3 class not being honored

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
pit-PL
Registered User
Posts: 3212
Joined: Sat Nov 21, 2009 12:24 pm

Re: h3 class not being honored

Post by pit-PL »

Try .postbody h3.info
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3732
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: h3 class not being honored

Post by Kailey »

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 Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: h3 class not being honored

Post by RMcGirr83 »

Why are you using <h3>?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
tomberaid
Registered User
Posts: 14
Joined: Wed Dec 20, 2017 8:11 pm

Re: h3 class not being honored

Post by tomberaid »

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”