why is the word spacing not working for the navigational links? and why is it that when I put position: fixed on navigational links, they clash together… something like this:
link to codepen: https://codepen.io/nianaz/pen/yLXeBWR?editors=1100
@lepros solved the link crash problem…(thank you @lepros )
but if possible can anyone help me with the word-spacing problem
lepros
September 3, 2021, 3:50am
2
I got rid of the list elements. Also, you’ll want to use position: fixed
on #nav-bar
rather than .nav-link
:
1 Like
lepros
September 3, 2021, 4:06am
3
For the spacing, how about using margin-right: 50px;
(or however many px makes you happy)
I meant word-spacing… for some reason it does not work for the navigational links
lepros
September 3, 2021, 4:14am
5
Right. I don’t know why word-spacing isn’t working. But margin-right will have the same effect.
1 Like
nneha
September 3, 2021, 6:46am
8
Word spacing property increases/decreases spaces between words .
Here you have only one word in each anchor element. So you were not able to see the word spacing.
For suppose, if I add 2 more words in the first anchor element( features of phone ) , you can see that word spacing is working.
If you want the space between the 3 anchor tags, you can use margin property.
Hope this helps
1 Like
ahh, i see, thank you for helping me understand!!
system
Closed
March 5, 2022, 12:19am
10
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.