Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: css/style error i can't debug
I guess that the problem was that you wanted to add an active class to the li as well as to the a elements.
I’m sure that there may be a more economical way to achieve what you wanted, possibly with the use of a variable but I can not think of a way to construct it just now.
I do see a minor issue in your code. href="/members should be href="/members/ as by default txp sections have a trailing slash.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: css/style error i can't debug
colak wrote #334462:
I guess that the problem was that you wanted to add an
activeclass to thelias well as to theaelements.
not sure i grasp the differences. i was just trying to mimic the bootstrap example but add the active state to the link.when on that page.
(on another site , done years ago, i used the txp section list with no issues. but with this bootstrap example it was a challenge)
I do see a minor issue in your code.
href="/membersshould behref="/members/as by default txp sections have a trailing slash.
thank-you … i have added the /
Last edited by bici (2023-01-06 06:52:12)
…. texted postive
Offline
Re: css/style error i can't debug
bici wrote #334282:
just when i thought i was done doing websites i got puled into doing another website for, of all people— retired folk, just like me!
i used a bootstrap framework or template. which i bent and adapted for our use. But one issue, albeit small, still haunts me. i cannot figure out how to stye the active link backround from solid black to another colour in the nava bar… see members section. I globally changed all what was black to red in the bootstrap.min.css file but darn it nothing changes! On the plus side i managed to adapt the footer area incorporating something that Gallex had done recently. (with thx!)Anyways if someone can easily spot the reason why i can’t change the background colour i would appreciate the tip. Otherwise will live with it.
PS there is also a bootstrap.min.js file that i can’t make much sense of. I can see i am a bit rusty. ;-)
Simple Bootstrap website powered by Textpattern. Now ready to add new sections once needed
Last edited by bici (2023-01-09 21:45:42)
…. texted postive
Offline