Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Style p inside div


  #1  
Old Mar 3, 2018, 02:55 PM
rominjn
 
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...
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?

Last edited by rominjn; Mar 3, 2018 at 02:58 PM.
  #2  
Old Mar 3, 2018, 05:33 PM
juggledad's Avatar
juggledad
 
23,765 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.
  #3  
Old Mar 3, 2018, 09:02 PM
rominjn
 
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.

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

Bookmarks



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 05:11 PM.


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