WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't find class to change border-top element (7 posts)

  1. Little Laura
    Member
    Posted 10 months ago #

    My website: creaturecomfortsofbalto.com

    I've successfully changed a couple elements, but can't seem to find the class to change my border from 5 px to 15. What I tried because that's what Firebug seemed to be showing me:

    .page page-id-78 page-template-default logged-in admin-bar customize-support {
        border-top: 15px solid #265E15;
    }

    Thanks...

  2. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 10 months ago #

    Hey. The border's being applied on the body element as follows:

    body {
    border-top: 5px solid #265e15;
    }
  3. Little Laura
    Member
    Posted 10 months ago #

    oh.. so, when I change the css style sheet on the child, do I put a period in front of the body? I have tried that, but to no avail. Just tried it again to be sure, like this:

    .body {
        border-top: 15px solid #265E15;
    }

    ...but no success changing the border size. Looks great when I try it on for size in the Firebug viewer, but haven't been able to actually accomplish the change.

  4. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 10 months ago #

    When you're targeting a HTML element via CSS, you don't need a period in front of that element's name. The period tells the CSS to look for a HTML element with a class of that name, so the styles in your example would be applied to a HTML element such as <div class="body"> as opposed to the <body> element.

  5. alchymyth
    The Sweeper & Moderator
    Posted 10 months ago #

    should work in your custom CSS section:

    body { border-top-width: 15px; }

    btw:
    your CSS is wrong in your first example; what Firebug shows is the html with space characters between the multiple classes of one element; you need to 'translate' that to CSS with the spaces replaced by '.' ;
    example:
    .page.page-id-78.page-template { ... }

  6. Little Laura
    Member
    Posted 10 months ago #

    Many thanks; I have been able to make the change I wanted, and grow a bit in my very beginning little batch of understanding working with css.

  7. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 10 months ago #

    Glad you've made the change you wanted. :)

Reply

You must log in to post.

About this Topic