Align list item to the left in unordered list

cssDuring last days I need to find a solution to align the unsorted list <ul> to align to left. In all browsers the problem is you see space in the left side of the list, so I need a solution for this problem for a jQuery accordion menu.

My solution is to add this property padding-left: 0pt to the ul block.

You must use the rule in this way:

ul {

float: left;

width: 215px;

margin: 15px 0;

padding: 0pt;

background: #ececec;

}

This property is supported by all browsers. I hope this tip could help other developers.

Advertisements
This entry was posted in css and tagged , , , , , , , , . Bookmark the permalink.

One Response to Align list item to the left in unordered list

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s