html - How to align a background image to bottom of table cells in css? -



html - How to align a background image to bottom of table cells in css? -

i'm trying thought simple..

i want display background image @ bottom of each table rows (or cells, whichever works best) i'm getting alignment issue.

the image seems align bottom of cell content, ignores padding.

border-origin:border-box doesn't seem have influence on result either.

setting background on row (ie. tr tag) produces problem.

the background uses syntax: background:url('...') bottom left repeat-x;

see next screenshot of results - i've added semi transparent outline of cell show boundaries. reddish dotted line background.

here's fiddle it: http://jsfiddle.net/bendog/gvtqwhw0/

(note: fiddle cdns bootstrap, i'm using project)

one think should easy...

the problem occurs on latest chrome , firefox on mac (but haven't tried other browsers yet)

use background-position adjust pixels wherever necessary

tr { background: url(data:image/svg+xml;base64,pd94bwwgdmvyc2lvbj0ims4wiiblbmnvzgluzz0idxrmltgipz4ncjwhre9dvflqrsbzdmcgufvcteldicitly9xm0mvl0rurcbtvkcgms4xly9ftiigimh0dha6ly93d3cudzmub3jnl0dyyxboawnzl1nwry8xljevrfrel3n2zzexlmr0zci+dqo8c3znihhtbg5zpsjodhrwoi8vd3d3lnczlm9yzy8ymdawl3n2zyigeg1sbnm6egxpbms9imh0dha6ly93d3cudzmub3jnlze5otkvegxpbmsiihdpzhropsizmdbwecigagvpz2h0psixmhb4ij4ncgk8bgluzsb4mt0imsigedi9ijmwmcigete9ijeiihkypsixiibzdhjva2u9iinlotrjmweiihn0cm9rzs13awr0ad0imsigc3ryb2tllwxpbmvjyxa9injvdw5kiibzdhjva2utzgfzagfycmf5psixlca1ii8+dqo8l3n2zz4ncg==) repeat-x; background-position:0% 104%; }

working fiddle

http://jsfiddle.net/gvtqwhw0/23/

html css

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -