Hi all, how are you doing? Wonder if someone could advise please as it’s been driving me crazy. I’m trying to build my website alongside studying the Responsive Web Design certificate. It’s probably something really simple (but bear with me as I’m very new to this) - my navbar is aligning to the left instead of Centre, and my background colour of lemon chiffon tone is not showing up either? Any constructive help (with a dollop of patience) would be really appreciated. TIA.
http://www.clairesells.co.uk
Hello Clara.
You can try this in your style.css
1º To align your nav bar:
nav {
width: 100%;
max-width: 800px;
height: 50px;
text-align: center;
}
2º To your background color:
body {
background-color: lemonchiffon;
}
Without #
Grets.
Aw thank you
I tried without the hashtag for the background colour and it worked? How come? Out of interest that it works now?
I still can’t Centre justify the nav bar though?
Remove the max-width
property from the nav
selector.
It worked!
Thank you both for helping, you’re superstars !