html - Display Div + span on same line? -
having trouble displaying div , span on same line.. styles are..
div
color: black; display: inline; font-family: arial, sans-serif; font-size: 13px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-y: visible; padding-top: 0px; white-space: nowrap; width: 0px;
span
color: black; display: inline; font-family: arial, sans-serif; font-size: 13px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-y: visible; padding-top: 0px; width: 0px;
div both wrapped in
color: black; display: block; float: left; font-family: arial, sans-serif; font-size: 13px; height: 20px; margin-bottom: 0px; margin-left: 8px; margin-right: 0px; margin-top: 0px; overflow-y: visible; padding-top: 1px; width: 373px;
what need change div , span displaying on same line? div displays , span on line under it.
you need add display:inline;
Comments
Post a Comment