Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Style p inside div (http://forum.bytesforall.com/showthread.php?t=24013)

rominjn Mar 3, 2018 01:55 PM

[SOLVED] Style p inside div
 
Hi all,

This has probably been answered a million times and I do know the answer but for some reason, it doesn't work for my page so I'm thinking it might have something to do with how Atahualpa is configured.

Basically, within a particular div that I set up, I want to remove the top margin of paragraphs. I know I'm supposed to do this...
Code:

.mydiv p { margin-top: 0px; }
But it doesn't work.

It does work when I individually style each p like this...
Code:

<p style="margin-top: 0px;"></p>
but that doesn't seem the smartest idea when the above code should be working in theory.

Any suggestions?

juggledad Mar 3, 2018 04:33 PM

I’ll take a look when my power comes back on. I replying from my phone right now. We were hit with a northeaster and 95% of my town is without power.

Have you used a code explorer to see what other css might being applied to the element?

rominjn Mar 3, 2018 08:02 PM

That was a great idea.

Through the Google Chrome's native code explorer, I found that the following element was the correct element to manipulate.

Code:

div.post-bodycopy p { }
Thanks.
Daniel

rominjn Mar 3, 2018 08:08 PM

And hope you and your town get back your power soon!


All times are GMT -6. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.