Forum Moderators: not2easy
In the interest of simplifying my code, I got the bright idea that I could just style the heading tags with no padding or breaks. Removing the space around them was done quite simply by setting the padding and margins to 0px but stopping the line break is another story. I have tried many combinations but am unable to get it to work. Is it even possible?
Another issue. Because I want no line break, I am attempting to insert my heading tags within a paragraph.
ie. <p><h1>heading</h1> text text text text text text text text text text</p>
The problem here is that I have styled the paragraph to have a specific color. When I insert a heading tag within the paragraph, the color styling is ignored and instead reverts to the default black. Can this be avoided?
Thanks in advance for any ideas! :o)
Since the <h1> heading is now styled to float:left, I changed the placement of the <p> tag from:
<p><h1>Heading</h1>text text text text text text text text text text</p>
to:
<h1>Heading</h1><p>text text text text text text text text text text</p>
Now the colour of the <p> is no longer affected.