937written posts
offlinecurrently
All birds and men are sure to die but songs may live forever
pancakehouse Misalignment of tab and body: you have the template twice, but it looks like the css in the second post wasn't updated, and so it's overriding the correct CSS in the first post. If you delete that second post, the first one should look correct as far as the tabs aligning.
Off-center vertical spacing: your site css has a td{ vertical-align:top !important; } which is overriding every other instance of vertical-align: middle. You could remove that from your site css, but in case you don't know what that'll affect, it might be best to add an !important to the instances where you use it in your templatesβthat should counteract it in this template and in your own.
Plug-in version: It would. After playing around with it a bit, the last version of the Style Tag plugin that still works with nesting [attr] in PTabs is 2.1.0
De-nesting [attr]: If youβre still interested, itβs pretty simple. All you have to do is take whatever css you had within the [PTab=div class] and apply it to a .PT_Tabs_holder td class instead. You may have to tweak it depending on how many divs were nested within that [PTab=] though. But basically, if you have
[PTab=[div][attr="class","nested"]Tab[/div]] [newclass=.nested]color: red[/newclass] it would become
[PTab=Tab] [newclass=.PTabs_holder td]color: red[/newclass]
Also, if there are any margins applied via div style (which do still work) rather than an attr class, you may have to move those into a newclass as well. So from
[PTab=[div style="margin-left: 10px"]Tab 1[/div] [PTab=[div style="margin-left: 20px"]Tab 2[/div] to
[newclass=.PT_Tabs_holder td:nth-child(1)]margin-left: 10px[/newclass] [newclass=.PT_Tabs_holder td:nth-child(2)]margin-left: 20px[/newclass]
|
last edit on Jun 21, 2020 22:27:43 GMT by gimmick
|