I’ve got a custom tag ab which is defined like so http://jsfiddle.net/JcLx4/2/ I want to make the black line behind the text draw till end of the line. How would I achieve this?
I’ve got a custom tag ab which is defined like so http://jsfiddle.net/JcLx4/2/ I want
Share
Add
ab { display: block; }to the CSS. Demo: http://jsfiddle.net/JcLx4/6/Unknown elements are inline (
display: inline) by default.If you want the styling to work in Internet Explorer 8 and older versions, you’ll need to use some JavaScript. Karl Nicoll’s answer describes a solution that will work for screen media, but it still won’t enable the styles for print media. If that’s what you want, you can use this modified version of the IE Print Protector:
See where it says
var a='ab'? You can add other elements there, using|as a separator, e.g.var a='ab|foo|bar'will enable<ab>,<foo>and<bar>styling.