Results 1 to 5 of 5
Thread: styling empty p tags
styling empty p tags 19 Dec 2010 @ 21.06
i am using the following for p tags
margin: 0 0 8px 0;
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 @ 22.06
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 @ 22.29
i noticed that when i hit enter tiny mce editor is generating
is there a way to change the editor settings to change <p> </p>
20 Dec 2010 @ 08.09
What version of TinyMCE are you running. I think it is out of date.
11 Jan 2013 @ 13.41
margin: 0 0 8px 0;
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.
- By Wrams in forum HTML & CSSReplies: 21Last Post: 6 Dec 2011, @ 14.01
- By sudhakararaog in forum HTML & CSSReplies: 2Last Post: 13 Jun 2011, @ 09.46
- By ljackson in forum HTML & CSSReplies: 3Last Post: 27 Dec 2010, @ 13.35
- By sudhakararaog in forum HTML & CSSReplies: 1Last Post: 7 Dec 2010, @ 02.38
- By Dre in forum HTML & CSSReplies: 17Last Post: 24 Jul 2009, @ 17.11