Welcome to WebmasterWorld Guest from 54.158.166.6

Forum Moderators: open

Message Too Old, No Replies

frontpage paragraph formatting

paragraphs and line breaks

   
7:59 pm on Jun 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using frontpage 2002 and i have a large page i want to clean up the html in...to get the line spacing right im having to remove every </p> tag and replace it with a </br> tag..If i dont the only way to format the page is by selecting the page paragraph properties and setting the line above and below to 0..but if i do that then every line has this ino added making double the code it needs..its ther some settings i can change that will formatt the page without adding code to every single line?
9:57 pm on Jun 22, 2002 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Hi soapy,

not 100% sure about any options addressing the issue directly, but you can use edit/replace in HTML view to replace any <p> </p> with <br>'s

Frontpage "aint bad" at making CSS either. Maybe you might want to toy around with using CSS for line spacing etc, so you can define what any tag you use "should" look like.

Edit/replace is under the Edit menu button (funnily enough) :)

To make CSS in FP, if you dont know...just make a new page and save the extension as .css. Then go to Format > Style on that page and CSS is created.

I'm not sure what you mean by "double the code" though...do you mean you are left with using both <p> and <br> tags combined?

2:32 am on Jun 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may not be aware that 'shift+enter'=<br> when typing in FP2002
4:37 am on Jun 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi! what i mean by double the code is that above every line frontpage inserts this:

style="margin-top: 0; margin-bottom:0

but the two comments from you guys was very helpful..thanks!

7:41 am on Jun 23, 2002 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hello soapystar, the best way to control the spacing before and after paragraphs is through the use of CSS - Cascading Style Sheets as BOL pointed out. If using an external style sheet, the code might look like this...

p{margin-top:15px;margin-bottom:15px;}

2:18 pm on Jun 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yep..that worked..but i had to set the pixels to 0...maybe u misunderstood what i wanted..but the command was good..thanks guys..saved me a lot of effort!