Welcome to WebmasterWorld Guest from 54.225.47.124

Forum Moderators: open

Message Too Old, No Replies

frontpage paragraph formatting

paragraphs and line breaks

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 19, 2002
posts:1945
votes: 0


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 June 22, 2002 (gmt 0)

Senior Member from GB 

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

joined:Jan 30, 2002
posts:4870
votes: 14


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 June 23, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 1, 2002
posts:1018
votes: 2


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 19, 2002
posts:1945
votes: 0


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 June 23, 2002 (gmt 0)

Senior Member from US 

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

joined:Apr 27, 2001
posts:12172
votes: 61


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 June 23, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 19, 2002
posts:1945
votes: 0


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!