I am wanting to do selectively stop the line feeds associated with the < p> command on a dynamically built HTML page and am using a style to do this. I know that
p {
display: inline
}
can do this, but I do not want to continually add this tag throughout the page.
Is there a method where I can create an alias of the p tag, or somehow create another tag that will invoke the style.
For instance (and I know that this code won't work), something like
<style type="text/css">
stop-p-lf {
p {
display: inline
}
}
</style>
then in my HTML I just use the tag like this..
<stop-p-lf>the next p tag will not line feed <p>
but the one after this</stop-p-lf> <p> will
I'm hoping to use these tags to ease readability and to reduce the amount of coding throughout the html.
Is there a way of doing this?