Friday, February 5, 2016

The CSS class did not play for hr

But thanks to Wordpress community - it does now! I wanted to put custom HR right under the title using CSS, and no matter how I did it it just did not work as I wanted to. But after looooong trying I finally found how it needs to be done here, I put the code:

.topic-divider {

  1. width:100%;
  2. color:#006400;
  3. align: center;
  4. size: 1px;
  5. border-bottom:2px double #006400;
}

at the very bottom of the custom CSS and there is another trick I discovered: there should be commenting only with /* something */, and no commenting starting with '//'. Weird, but now it works! Right how I wanted it to. I am happy: little victories like that make my day :)