Hello,
I was starting to work on a simple landing page for a B&B.
I have had 2 main issues in terms of styling :
- i dont know how to automatically center 2 inline blocks H4
- i dont know how to change the text inside the anchor element, neither the colour
- i dont know why when i use a background image it becomes multiple images to cover the space of the box
i am pasting here the code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calamurn B&B Ortigia</title>
<link rel="stylesheet" href="./resources/css/style.css">
</head>
<body>
<div class="nav">
<h1>Calamùrn Ortigia</h1>
<img class="logo" src="./resources/images/Logo.png" alt="Calamurn Logo">
</div>
<div class="book">
<h4><a href="booking link">BOOK ON BOOKING</a> </h4>
<h4><a href="airbnb link">BOOK ON AIRBNB</a> </h4>
</div>
</body>
</html>
h1{
text-align: center;
font-family: cursive;
padding: 30px 0;
}
.nav{
background-color: #f2e6d9;
border: 5px solid white;
}
.logo{
margin: auto;
display: block;
width: 180px;
height: 180px;
padding: 30px 0;
}
h4{
color: black;
background-color: white;
display: inline-block;
border: 5px solid black;
margin: 50px;
padding: 50px;
position: relative;
left: 350px;
}
div.book{
background-image: url(https://p.bookcdn.com/data/Photos/320x200/11818/1181880/1181880142/Calamurn-Ortigia-photos-Exterior-Calam-rn-Ortigia.JPEG);
}