html - Using bottom with position relative? -


i trying series of <a> tags appear @ base of parent <li>.

the problem 2 fold. if use position: relative, bottom: 0; has no effect. if use position: absolute, <li>'s have overlapping widths.

i can fix first problem using top style, not ideal text size unknown, , top element measure top of both elements (so base of element not hit base unless knew font size).

i can fix second defined widths, add unwanted white space on elements shorter titles.

here jsfiddle of issue.

try bit of css:

#main-menu li a{     display: table-cell;      position: relative;     vertical-align: bottom;     height: 111px; } 

jsfiddle of working style


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -