• Resolved jgoldberg2013

    (@jgoldberg2013)


    something so simple – but can’t get it.
    html code: `<div id=”widget-title-one” class=”widget-title-home”>
    <h3>BUYING & SELLING</h3>`

    I am trying to centralise the heading teaxt within the widget-title-one div/box.
    Here is my code: `#widget-title-one .widget-title-home {
    color: black; {
    margin: auto;
    padding: 0px ;
    vertical-align: middle;
    line-height: 23px }`
    It seems this ignores eveything as the style reverts back to its orignal state.
    I have also tried: `#widget-title-one h3{
    color: black; {
    margin: auto;
    padding: 0px ;
    vertical-align: middle;
    line-height: 23px }
    the same thing happens as above.
    I removed the padding as well to ensure I get a centre centre alignment.
    I am sure I am missing something so simple.
    Please assist.

Viewing 1 replies (of 1 total)
  • Thread Starter jgoldberg2013

    (@jgoldberg2013)

    RESOLVED Sorry, I figured it with something I am sure I tried before.

    #widget-title-one h3 {
      color: black;
      text-align: center; }

    I thought I was over thinking problem.

Viewing 1 replies (of 1 total)

The topic ‘Style heading within widget div’ is closed to new replies.