• Resolved aliensquirrel

    (@aliensquirrel)


    For obvious reasons, doing a Search on these doesn’t work :-). I’m trying to customize a theme and I can’t work it out for myself. Here’s a snippet:

    code {
    background: url(‘img/bgcode.gif’);
    border: 1px solid #F0F0F0;
    border-left: 6px solid #F06;
    color: #444;

    The “a” tag I’m talking about is in several places. Here’s one:

    .header h1 a{
    color: #222;
    text-decoration:none;
    }

    Thanks, all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • And what is it you want to do with those?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I’d go google for “CSS Tutorial” and start reading. It’s not difficult to learn, shouldn’t take more than 20-30 minutes to get the basics down pat.

    Thread Starter aliensquirrel

    (@aliensquirrel)

    vkaryl, I don’t know what I want to do with them until I know what they are. 🙂

    What I’ve got is a very badly-behaved theme. I’ve customized other themes with no trouble, but this one has a stylesheet that’s not only very non-standard but also very badly organized, with sections split up, elements scattered in half a dozen different places, and nothing working the way it has in previous themes. (I canNOT, for instance, make an <h2> tag perform properly, for pete’s sake.)

    So I figured I probably need to re-do a lot of it, using the Codex and my handy-dandy Laura Lemay book, but “code” and “a” are pretty impossible to Search for, even in online css tutorials.

    If this isn’t an appropriate place to ask this question, I apologize.

    Well, the code thing is probably there to cover those who want to post code in their blog posts.

    As far as numerous instances of the “a” element, I guess I’m not seeing the problem. I have a couple of stylesheets that have different “a” elements (ALL of them) for header, body, sidebar, content, footer – and some others for page.php and single.php. If you want to use just one set for the whole theme, just put something like this in below the body element:

    body a, body a:link, body a:visited, body a:hover, body a:focus, body a:active {
    color: #222;
    text-decoration:none;
    }

    Or split out the hover, focus, and active and give them a different color. Then comment out all the rest of the “a” elements in the stylesheet and see what it looks like. Tweak and repeat….

    Thread Starter aliensquirrel

    (@aliensquirrel)

    Thanks very much.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Definitions of “code” and “a” in css’ is closed to new replies.