WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18256


Ignore:
Timestamp:
07/26/11 04:48:05 (4 years ago)
Author:
dd32
Comment:
<ul>
  <li>
   has-children
  </li>
  <ul>
   <li> children..

like you suggest is invalid nested HTML.

The current form is the correct method for nested lists:

<ul>
 <li>
   has-children
   <ul>
     <li> children..

You can probably achieve what you want by having the child ul 100% width, and setting a padding on it instead of a margin, as a result, the background colour of the parent would be hidden behind the background colour of the child ul.

Closing as invalid due to the premise being the HTML is incorrect.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18256

    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
    • Property Milestone changed from Awaiting Review to
  • Ticket #18256 – Description

    initial v1  
    77And I want to style the current category:  
    88 
    9 .current-cat { 
     9`.current-cat { 
    1010background-color: #cccccc; 
    11 } 
     11}` 
    1212 
    1313The HTML output is this: