Results 1 to 5 of 5
Thread: styling empty p tags
-
styling empty p tags
19 Dec 2010 @ 20.06 i am using the following for p tags
p{
margin: 0 0 8px 0;
line-height: 18px;
}
with this each para has a line height and margin between paragraphs
however in the html editor where the content is written when i add spaces empty <p></p> tags are being created by the editor and with the above style for p tags there is lot of unwanted vertical gaps being created
is there a way to style empty <p></p> tag so that these vertical gaps will not be created
also i am using a separate css for printing when i print in firefox i have set the url to print at top right and if the url is too long only a portion of the url is being printed, is there a way to print the entire url or is this a normal printer behaviour to print the url to whatever extent the width is available
-
19 Dec 2010 @ 21.06 Not really, you could use JavaScript but I would avoid it as people that have JavaScript disabled would still see this.
Option 1: Use a different HTML editor.
Option 2: If the source code is available you could change the way the editor handles line breaks.
Option 3: You could write some form of script which processes your documents and replaces instances of <p></p> with something you could style better.
I personally would go for option 1. Its simple and there are plenty of good HTML editors around who handle this better.
-
19 Dec 2010 @ 21.29 i noticed that when i hit enter tiny mce editor is generating
<p> </p>
is there a way to change the editor settings to change <p> </p>
to <br>
-
20 Dec 2010 @ 07.09 What version of TinyMCE are you running. I think it is out of date.
-
11 Jan 2013 @ 12.41 p
{
margin: 0 0 8px 0;
line-height: 18px;
}
you were using high value to the line-height. So the paragraph content has more vertical gap.
you will have to reduce the line-height size.
Similar Threads
-
Styling the Menu/NavBar
By Wrams in forum HTML & CSSReplies: 21Last Post: 6 Dec 2011, @ 13.01 -
styling table cell
By sudhakararaog in forum HTML & CSSReplies: 2Last Post: 13 Jun 2011, @ 08.46 -
why am i getting this extra left styling which i have not added??
By ljackson in forum HTML & CSSReplies: 3Last Post: 27 Dec 2010, @ 12.35 -
styling iframe
By sudhakararaog in forum HTML & CSSReplies: 1Last Post: 7 Dec 2010, @ 01.38 -
Question about styling
By Dre in forum HTML & CSSReplies: 17Last Post: 24 Jul 2009, @ 16.11



LinkBack URL
About LinkBacks











Displaying Search Results
Agree with you.... Generally, we don't have control over display...