html - How to "reset" style in view page, set in css file -
for li element have specified width in stylesheet:
width: 100px; now 1 specific li instance in view, width not apply , instead max-width: 200px;. add view file in rails:
<li style="max-width:200px"> however, of course not overwrite width still width of 100px applies.
is there way remove width 1 element, without making changes nor adjustments css file? in view file width: unspecified.
the default value of width auto, in css.
so:
<li style="width:auto; max-width:200px">
Comments
Post a Comment