• Resolved kyriazis

    (@kyriazis)


    In style.css I specify a double border for my images as suggested in the WP docs:

    p img {
    ...
    border: double black 1px
    }

    That works. However, when I try to make this a hyperlink, as in:

    <a href="/path"><img src="/path/to/image"></a>

    The border on my image goes away.

    Does anybody have an idea on how to fix that?

    Thanks everybody,

    George

Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe
    p img, a img {
    ...
    border: double black 1px;
    }

    Thread Starter kyriazis

    (@kyriazis)

    Cool, that gave me ideas on what worked.

    I’m new to CSS, so pardon my ignorance. I just edited the a img section (there already was one), and that worked.

    Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS: how do I set border in a hyperlink?’ is closed to new replies.