Support › Forums › Flex Theme › Centering call to action › Reply To: Centering call to action
July 21, 2015 at 11:50 am
#425
Moderator
1. Make this code
<div class="cta"><div class="shadow"><img src="http://notesofnomads.com/wp-content/uploads/Okinawa-Wedding-0154.jpg" width="300" class="alignleft"/><h2>Welcome to Notes of Nomads!<br /><h6>The travel resource that helps you navigate the cultural divide. <br /><br />Hi, we're Jessica & Hai, two wanderlusting adventurers here to share our trade secrets.
<br /><br />
<a href="http://notesofnomads.com/about/" class="button">Learn more</a>
</div></div>
to this…
<div class="cta"><div class="shadow"><div class="box-widget-wrap"><img src="http://notesofnomads.com/wp-content/uploads/Okinawa-Wedding-0154.jpg" width="300" class="alignleft"/><h2>Welcome to Notes of Nomads!<br /><h6>The travel resource that helps you navigate the cultural divide. <br /><br />Hi, we're Jessica & Hai, two wanderlusting adventurers here to share our trade secrets.
<br /><br />
<a href="http://notesofnomads.com/about/" class="button">Learn more</a>
</div></div></div>
Note: Basically adding extra div element “box-widget-wrap”
2. Then open style.css file
Change following code
.home-top .enews-widget .widget-wrap {
margin: 0 auto;
max-width: 1140px;
padding: 30px;
}
to this…
.home-top .box-widget-wrap,
.home-top .enews-widget .widget-wrap {
margin: 0 auto;
max-width: 1140px;
padding: 30px;
}