How To Add a CSS for a Paragraph within a Div Tag?

  • Author
    Posts
  • #794855

    Hi, everyone I got a question very seriously drive me crazy:

    I know how to edit a single tag’s style.
    But I got trouble now:

    How to edit the font style of text under <p> within a <div> that class as, for example, mydiv

    Can anyone help me figure out how to write such CSS to edit this specific tag?

    Thanks A lot!

    The blog I need help with is adamchenitprofessional.wordpress.com.

    #795015

    timethief
    Member

    Please spot an active link starting with http:// to the blog in question. It cannot be the one linked to your username as that one is empty.

    #795017

    timethief
    Member

    edit: “spot ” was meant to be “post” sorry :(

    #795019

    To answer your question, you would do this:

    .mydiv p {
    someproperty: somevalue;
    }

    If you need further help, please post a WordPress.com URL as timethief requested. :)

    #795021

    Also what about there is multiple div?
    For example, I want to change the <p> font color within a parent div class=oneparent, and under the child div class=twochild

    Actually this is my real problem at the moment..

    Thanks!

    #795023

    timethief
    Member

    @adamchenitprofessional
    Please post an active link starting with http:// to the blog you purchased a custom deign upgrade for.

    #795024

    I am so sorry that I am not allowed to post the link until the site is fully published, and thats why so much hussel, please understand :)

    #795026

    But I would really appreciate a answer that answer for the latest question and I am very thankful, however, the site link will be link to this post if its still open when its online for real :D

    #795027

    the one above multiple div parent
    Let me paste the text again:

    “For example, I want to change the <p> font color within a parent div class=oneparent, and under the child div class=twochild

    Actually this is my real problem at the moment..

    Thanks!”

    #795028

    timethief
    Member

    Allow us to be crystal clear. We require a link to the free hosted WordPress.com blog in question. The fact it is private is irrelevant. We need the link in order to confirm that it is actually a free hosted WordPress.com blog you are referring to. Also as all CSS editing is theme specific we need to know exactly which theme you are CSS editing.

    #795029

    its not really a free hosted WordPress, its a private hosting service :)

    #795030

    Can you post an example html block instead? Or perhaps make an example at http://adamchenitprofessional.wordpress.com/ so we can see it in a URL?

    #795031

    This forum is for WordPress.com blogs, so you can make an example at http://adamchenitprofessional.wordpress.com/ or head over to http://wordpress.org/support/ for help instead.

    #795033

    Sure, I think I wil do that to post the plugin in my own press site
    Just a sec

    #795034

    Oh wait……… We can not use plugin in a freee hosted wp site?

    #795035

    timethief
    Member

    its not really a free hosted WordPress, its a private hosting service :)

    Indeed and that’s why we asked for the URL. WordPress.com and WordPress.org run on different software and the themes by the same name are not the same versions. The themes are coded to run on either one or the other.
    WordPress.com vs WordPress.org: The Differences

    #795037

    timethief
    Member

    We can not use plugin in a freee hosted wp site?

    No you cannot. There is no FTP access and we cannot upload plugins. Please read http://support.wordpress.com/com-vs-org/

    #795038

    Ok, I posted the code I am in question in my blog here:

    http://adamchenitprofessional.wordpress.com/2012/01/10/sample-html-from-my-site/

    Thanks everyone :D

    #795039

    The Goal is to change the text:

    <p>AIG CT New Case Submission Checklist
    AIG CT Master Application
    AIG CT Employee Enrollment Form
    AIG CT Evidence of Insurability
    AIG CT Waiver Form
    AIG CT Change of Beneficiary Form
    AIG CT Salary Change and Term…</p>
    </div>

    Into white text

    #795042

    Guys, Thanks for your assistance, but I found the errors after I tried to place the same plugin in one of my own site.

    But Thanks
    The problem may lay with my own CSS put into.

The topic ‘How To Add a CSS for a Paragraph within a Div Tag?’ is closed to new replies.