If a theme sidebar is created correctly, the entire sidebar should actually be a list controlled and styled with css to make the sidebar look nothing like a list. Theme designers usually start and end a sidebar with a ul tag. You just need to make sure your content is inserted betweent the ul tags as list items (li).
In most cases, you will want to insert content in your sidebar as a list item like this: <li>sidebar content</li>
You can of course continue to make the list deeper by adding sub lists to the list like this:
<li><h2>sidebar content header</h3>
<ul>
<li>main sidebar or widget content</li>
</ul>
</li>
One common mistake I see is with the use of text widgets in a widgetized sidebar. it is a good idea to start the text of your text widget as an unordered list all by itself. This will make the text box of the widget a sub-list of the main sidebar list.
For example, this screenshot of a text widget does not start the text form content area with the correct ul (unordered list) li (list item) tags:

The improper formatting of the text in the text widget box produces the following improperly formatted sidebar widget with no border space as the developer intended:

Properly formatting the text in the text widget as an unordered list item looks like this:

Properly formatting the text in the text widget form area as an unordered list makes the sidebar widget content space properly as the developer intented like this:

Tags: Themes, web-design, websites, Wordpress









Tonia Moxley wrote,
Can you have nested categories in shifter sidebars? For example, on my blog I have a “dining and drinking” category, and I would like for subcategories “restaurants,” “wine” etc. show up nested beneath the parent category. Right now, the subcategories are listed in the same format as parents.
Quote | Link | November 2nd, 2007 at 2:29 pm
Tommy wrote,
@Tonia, sure you can have nested list items.
<ul><li>Nest Items Like This
<ul>
<li>Just make</li>
<li>another nested list</li>
<li>within the original list</li>
</ul>
</li>
</ul>
Displays as:
Quote | Link | November 10th, 2007 at 9:57 pm