Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Style p inside div

Old Mar 3, 2018, 02:55 PM
22 posts · Jan 2018
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...
.mydiv p { margin-top: 0px; }
But it doesn't work.

It does work when I individually style each p like this...
<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?

Last edited by rominjn; Mar 3, 2018 at 02:58 PM.
Old Mar 3, 2018, 05:33 PM
juggledad's Avatar
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 3, 2018 at 05:35 PM.
Old Mar 3, 2018, 09:02 PM
22 posts · Jan 2018
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.

div.post-bodycopy p { }
Old Mar 3, 2018, 09:08 PM
22 posts · Jan 2018
And hope you and your town get back your power soon!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translator inside Header? RickSlatton Header configuration & styling 1 Apr 25, 2013 11:43 AM
Menu with pics inside Spidey Page & Category Menu Bars 12 May 5, 2011 10:29 AM
[SOLVED] Style Inside a Table: How to change H1/2/3 padding? epsymp Atahualpa 3 Wordpress theme 2 Mar 5, 2011 08:13 PM

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

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