0

I'm trying to add a border image after every header in Wordpress, but the following isn't working

h1:after {
content:' ';
border:2px solid rgb(229,164,20);
margin: 25px 0;
display:inline-block;
width: 45px;
}
Anonymous
  • 9,152
  • 2
  • 19
  • 36
Creatif_IV
  • 551
  • 6
  • 13
  • 1
    Please provide your HTML. Cause it works fine: http://jsfiddle.net/9mnujnyy/ If you want the border under the heading, just do a `border-bottom` on the `h1` itself. – Aibrean Aug 23 '14 at 14:30
  • 1
    What do you want the border to look like in relation to the heading text? a 45px wide line underneath the heading text, aligned left? – Sarah Aug 23 '14 at 14:31
  • @Aibrean idk, for some reason it's not showing up in wordpress. Here's the link: http://tudorice.com/.. I would like it to show up under every h1 element. The border is visible on one page, but i coded it using a span tag. – Creatif_IV Aug 23 '14 at 15:29
  • Have you tried using `::` instead of `:`? – Howli Aug 23 '14 at 17:21
  • @Howlin no what's the difference ? – Creatif_IV Aug 23 '14 at 17:23
  • [This](http://stackoverflow.com/a/20471091/3204827) link should explain the difference. – Howli Aug 23 '14 at 17:32

0 Answers0