Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, how do I make the navbar so everything is lined up in the black area. So each text covers up 25%? The resolution is smaller in Jsfiddle. So it looks different from my perspective. I currently have all 4 in the middle of the navbar but I can't seem to get the text-align to get centered nor to space the padding/margin to the right or left because then the last item(LONE) Line breaks

Link:https://jsfiddle.net/9d62xvc6/1/

It looks like this with 1680 resolution:https://gyazo.com/a84a4a331eda54798d3cb8e446ef2b78

What I have tried:

Width:100% Doesn't make it fully extended.
Posted
Updated 24-Jun-17 22:52pm

1 solution

Remove the height attribute or set padding attribute to have spaces around.

CSS
.Navbar  {
background-color:black;
margin-left:100px;
margin-top:-21px;
margin-right:100px;
/* height:70px; */
padding: 2px;
opacity:0.8;
text-align:Center;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900