Space


#1

What code do you have to use if you want to have a space between your lines, because I don't think it is:

<br></ br>

Like if I want to have a list:

<ul>
<li>Help</li>
<li>Me</li>
</ul>
<br></ br>
<ul>
<li>Please</li>
<li>!<li>
</ul>


#2

you want space between your unordered list? ideally, you use margin:

<ul style="margin-bottom: 50px">
<li>Help</li>
<li>Me</li>
</ul>
<br></ br>
<ul>
<li>Please</li>
<li>!<li>
</ul>

#3

You use that every time you want space between lines, like also with <p>?


#4

style is an attribute, which has a property (margin-bottom in this case) and a value

There are other properties you could use (top, padding and more), but you will learn those later in the course


#5

Well, it actually doesn't work..
I'm typing it on a personal sheet.

Nothing in the head or something...


#6

top property doesn't work for static elements.

if you have questions about the properties, look at MDN to see an explanation of the properties, or find the right codecademy exercise


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.