Mr.T.K
Mr.T.K

Reputation: 2356

Applying background to lists

I have a ul list, which is formed as a table format. table format in the sense if i put 15 words in the single cell table-row will extend but not in ul list format. but i have done as like table format in the ul list.

My problem is

if i apply background for single cell that will apply beneath cell too. I need that particular has background color:

Here jsfiddle link: http://jsfiddle.net/thilakar/TewjZ/

Upvotes: 2

Views: 55

Answers (2)

anglimasS
anglimasS

Reputation: 1344

Just try,

.today {background:#ccc; margin:0 !important; padding:0!important}

Upvotes: 1

Nachshon Schwartz
Nachshon Schwartz

Reputation: 15765

In your code you seem to be setting some bad CSS property values.

The corrected code: http://jsfiddle.net/nayish/TewjZ/1/

The problem does not apear here. What I've changed is the margin-bottom: -300px and the padding-bottom: 308px you had set.

The main problem was that each table-cell was actually higher than it seemed and stretched beneath the other table cell's below it.

Upvotes: 2

Related Questions