Style heading within widget div
-
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.
The topic ‘Style heading within widget div’ is closed to new replies.