fighter-ii fighter-ii - 2 months ago 7
CSS Question

Padding not applied to ul

i really don`t know whats going on here.

I have the following HTML syntax

<div class="album_column>
...
<ul>
...
</ul>
...
</div>


And the following css:

ul {
padding: 0;
margin: 0;
}

.album_column ul {
display: block;
padding: auto;
margin: auto;
}


But for some reason, the padding of
.album_column ul
isn't applied to the ul (but all other arguments i can think of are, like margin, color, whatsoever)

You can see the behavior in the following screenshot:
Padding not applied
any input appreciated :) thanks a lot guys!

edit: additional screenshot:
padding manipulated

Answer

auto is not a valid value for padding property, the only thing you can do is take out padding: 0;

Comments