inherit
264524
0
Jun 16, 2021 5:04:22 GMT -8
somuchjoy
2
June 2021
somuchjoy
|
Post by somuchjoy on Jun 15, 2021 22:52:23 GMT -8
Hello, I hope that someone can help me with this problem: I’m an administrator of a forum, for some reason when I go to create a forum post with some coding, the border around my post does not appear when posted. But it is shown in the preview section? Can someone help me please, as it’s an ongoing project with friends. Side note; The table coding is fine. Every post has this problem. Post in preview: Saved post:
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 15, 2021 23:49:34 GMT -8
there is probably CSS in the theme you're using causing this. can you link to an example post?
|
|
inherit
264524
0
Jun 16, 2021 5:04:22 GMT -8
somuchjoy
2
June 2021
somuchjoy
|
Post by somuchjoy on Jun 16, 2021 4:19:52 GMT -8
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 16, 2021 6:24:40 GMT -8
Yes, I need a link to an example post 😶 I need to be able to see the coding for the post and how it interacts with the CSS for the theme. While I could install the theme and check the CSS, it would be guesswork at best without seeing the two interact. If you don't want to share a link publicly, you're welcome to PM me with one.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jun 16, 2021 6:58:58 GMT -8
Hi somuchjoy From your Admin panel, navigate: Admin Home> Themes> Advanced Styles & CSS and click on the Style Sheet tab. Select LAND (by Smangii) in the dropdown to the right of Current Theme. Scroll down to lines 1110 thru 1112. You'll see this: .container.posts .control-bar, .container.posts .content, .container.posts .content table tbody tr.post td { border: none !important; }
That's forcibly removing borders. The last selector is targeting table cells in posts. I'm not sure why that is being done. You could comment out the last selector like this: .container.posts .control-bar, .container.posts .content, /* .container.posts .content table tbody tr.post td */ { border: none !important; }
If that has adverse side effects, you could change back to the original, without the selector being commented out. Then use !important in the inline styling for the table cell borders, each and every time. Or maybe Kami has a better solution.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 16, 2021 7:21:52 GMT -8
If you don't know why something is being done, why are you suggesting to remove things?
Based on the design of the theme and that particular theme creator's habits, that's an intentional design choice for a specific borderless aesthetic that is present throughout the theme. Again, the best way to diagnose and provide a solution is to see both codes interacting with each other in order to provide targeted solutions for the issue as opposed to creating broad-scope bandaids.
There is a reason I ask clarifying questions and for examples of behaviour in action. If you don't understand why I do things the way I do, I am more than happy to explain via PM or in a coding discussion thread in this board.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jun 16, 2021 7:55:04 GMT -8
If you don't know why something is being done, why are you suggesting to remove things? Because what IS there, increases the difficulty for an individual user to do something rather basic. Place borders around table cells in posts. Again, the best way to diagnose and provide a solution is to see both codes interacting with each other in order to provide targeted solutions for the issue as opposed to creating broad-scope bandaids. Excellent. Looking forward to seeing your targeted solution.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 16, 2021 8:08:39 GMT -8
Yes, I am aware of that. I am pretty familiar with this theme, and Smangii and I have been friends for over a decade at this point and have collaborated together on many things. I did not ask these questions out of ignorance or laziness to provide an "obvious" solution.
I understand your suggestions come from a reasonable line of thinking (ie remove the immediate blocker for the user), but that is not always the best / most appropriate approach. CSS is, as the name states, cascading; changes in the CSS can have a trickle-down effect because everything builds on what preceded it. This is just really standard dev troubleshooting methods especially when it involves custom changes away from the default.
|
|