We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12887
    • 1 Posts
    Guys, I can’t -- for the life of me -- figure out why I can’t format the inside h2 header with a top-border. Is this something ModX can’t do for some reason?

    A similar look I’m going for can be seen here: http://www.subtraction.com/ (Check out the line on top of About Me, for example)

    My demo site is live here: http://demo.indydc.com

    The code I’m using is as follows:

    #right-inner h2 {
    font-size: 16px;
    text-transform:uppercase;
    border-top:2px #000;
    padding-top:10px;
    }
      • 25663 MODX Staff
      • 12,272 Posts
      MODx doesn’t place any restrictions at all on your output. It’s 100% in your control. When you run into situations like this, I find troubleshooting with Firefox and Firebug invaluable. This tells me that your actual styles being used on that selector are as follows:

      #right-inner h2 { /* layout.css (line 134) */
      border-style:none solid double;
      border-top:2px none #000000;
      font-size:16px;
      padding-top:10px;
      text-transform:uppercase;
      }
      #right-inner { /* layout.css (line 128) */
      text-align:left;
      }


      The code above tells me that you explicitly set the top-boarder to be none, which mirrors your output. You might try changing that to:
      #right-inner h2 {
      border-top: 2px solid #000;
      font-size:16px;
      padding-top:10px;
      text-transform:uppercase;
      }


      (moving to the appropriate topic)
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve done that a time or two myself... forget to specify which type of border, and it defaults to "none" and doesn’t work. Very frustrating!
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org