I am working with two specific css commands.
code h1 {
background: #000000;
border-radius: 6px;
color: #fff;
display: block;
font: 40px/60px "Sans", Inconsolata, "Lucida Console", Terminal, "Courier New", Courier;
padding: 40px 40px;
text-align: center;
margin: 0 0% 40px 0%;
.header img {
float: right;
width: 100px;
height: 100px;
background: #000000;
My goal is to display the name of the website in the middle surrounded by a black bar. Currently, the logo of the website sits on the same line as the text in the right corner. I am looking for a way to shift it slightly towards the left without disrupting its alignment. It seems that using both float: right and margin-right doesn't work together as intended. By adjusting the margin values, the logo loses its alignment with the text.