Question : sublists margin


I have an ol with a margin-bottom defined as 15px and within this list i have an ul with a margin defined as 4px. As the list is contained within an ol it adopts the 15px and not the 4px. Is there a work around?


Answer : sublists margin

The pixel numbers are additive.  If the list within the main list is only to have 4 px rather than 15 px, you need to SUBTRACT to get the value you want -- 4 -15 = minus 11.  Play with the numbers till it works.
Random Solutions  
programming4us programming4us