2 replies [Last post]
Drain0
Drain0's picture
Offline
newbie
Last seen: 4 weeks 6 days ago
Joined: 2008-09-05
Posts: 9
Points: 9

Hello there.

I want the white opaque box on this page hero https://www.onegoaldrivingschool.co.uk/ to have a uniform padding of 33px around the text rather than stretching off to the right.

.hero-1 {
background-color: white;
opacity: 0.8;
padding: 33px;
font-size: 22px;
}

Drain0
Drain0's picture
Offline
newbie
Last seen: 4 weeks 6 days ago
Joined: 2008-09-05
Posts: 9
Points: 9

(here is html)

<div class="hero-1">
	<h1>
		{{post_title}}
	</h1>
	<ul>
 	<li><a href="https://www.onegoaldrivingschool.co.uk/contact/">Lessons £38 per hour</a></li>
 	<li><a href="https://www.onegoaldrivingschool.co.uk/contact/">Gift Vouchers Available</a></li>
 	<li><a href="http://www.onegoaldrivingschool.co.uk/motorway-tuition/">Motorway Tuition</a></li>
 	<li><a href="https://www.onegoaldrivingschool.co.uk/contact/">Refresher Lessons</a></li>
 	<li><a href="https://www.onegoaldrivingschool.co.uk/driving-lesson-cancellation-policy/">Driving Lesson Cancellation Policy</a></li>
</ul>
	</div>

Drain0
Drain0's picture
Offline
newbie
Last seen: 4 weeks 6 days ago
Joined: 2008-09-05
Posts: 9
Points: 9

Solved

.hero-1 {
background-color: white;
opacity: 0.8;
padding: 33px;
font-size: 22px;
  width: -moz-fit-content;
  width: fit-content;

}