How do i space the different items in my header. Example to create a space between ''About Us'' and "contact Us"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i space the different items in my header. Example to create a space between ''About Us'' and "contact Us"?

Word spacing creates spaces between the words and some of the items have more than two words.

5th May 2020, 5:01 AM
Iwasam Enya
Iwasam Enya - avatar
8 Answers
+ 1
Here is the corrected code Iwasam Enya :)) https://code.sololearn.com/W1ka3UN6T5Jp/?ref=app Just add a class to the nav items and give some left and right margins!
5th May 2020, 6:21 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
<style> span{ padding: 10px;} </style> <header> <span>About Us</span> <span>Contact Us</span> </header>
5th May 2020, 5:10 AM
Kashyap Kumar
Kashyap Kumar - avatar
+ 3
.hap a { margin: 10px; }
5th May 2020, 5:41 AM
Calviղ
Calviղ - avatar
+ 2
add a css property to a{ margin:5px; //more or less as you want }
5th May 2020, 6:30 AM
k k
k k - avatar
5th May 2020, 5:01 AM
Iwasam Enya
Iwasam Enya - avatar
0
Put this between words &nbsp; That is a special keywork for a single space
5th May 2020, 5:10 AM
Abhay
Abhay - avatar
0
add this .eny a{margin-left:10px;} or higher, depending on how much space you want
5th May 2020, 6:31 AM
Lucky victory
Lucky victory - avatar
0
Please move your code link out of the thread tags and into the Description field 👍
5th May 2020, 7:23 AM
Ipang