homepage Welcome to WebmasterWorld Guest from 54.161.236.92
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
How to insert </p> and px in FP2002?
reddevil




msg:935576
 10:22 am on Feb 11, 2006 (gmt 0)

I am using FP2002 which was included with Windows XP.

When I am in html view and manually add the closing </p> and then Save. The </p> tag automatically disappears.

The same happens when I try to add px to the size of photo images.

It is so annoying - how can I get FP to keep my mark-up?

 

jimbeetle




msg:935577
 9:05 pm on Feb 11, 2006 (gmt 0)

I no longer have FP 2002 on my machine so I can't specifically check this, but I remember it being much the same.

For the closing paragraph tag, go into Tools > Page Options and look for the Code Formatting tab. There's a scroll box where you can select the paragraph element (or any other) and apply what formatting you want. Be sure the "Omit end tag" box is unchecked. You can do quite a bit of fiddling with the look of your html code here, it's kind of neat.

I can't replicate the image size px problem in FP 2003. The only suggestion I can make is the be sure is the "Specify size" and "in pixels" are both checked in the picture properties diaglogue box. Or, there might be some other settings in the Page Options that might affect this, I'm just not sure.

encyclo




msg:935578
 9:13 pm on Feb 11, 2006 (gmt 0)

Bear in mind that if you are adding "px" to the width and height values of an img tag then the program is correct in removing them if an auto-correct feature is enabled. You only use "px" with CSS, so a normal image element should look like this:

<img src="image.jpg" width="200" height="150" alt="alternative text">

reddevil




msg:935579
 1:12 pm on Feb 12, 2006 (gmt 0)

[Be sure the "Omit end tag" box is unchecked.

Hey, I didn't know about that setting but have found it now. Oddly enough the Omit start tag and Omit end tag for the <p> were already unchecked!? I will have anotherrt play later.

Bear in mind that if you are adding "px" to the width and height values of an img tag then the program is correct in removing them if an auto-correct feature is enabled. You only use "px" with CSS, so a normal image element should look like this:
<img src="image.jpg" width="200" height="150" alt="alternative text">

Oh, I didn't know that! Previously I had been coding all my images with px - whoops. Solved that one anyway - cheers.

reddevil




msg:935580
 4:41 pm on Feb 12, 2006 (gmt 0)

For the closing paragraph tag, go into Tools > Page Options and look for the Code Formatting tab. There's a scroll box where you can select the paragraph element (or any other) and apply what formatting you want. Be sure the "Omit end tag" box is unchecked. You can do quite a bit of fiddling with the look of your html code here, it's kind of neat.

This is the last problem for me to sort out for my redesign.

I have found the scroll box, clicked on the <p> and found the "Omit end" and "Omit start" tags to be unchecked, but still the end </p> disappears when I hit the Save button.

Could there be any other defaults overriding this?

reddevil




msg:935581
 5:00 pm on Feb 12, 2006 (gmt 0)

I have found Tools - Page Options - General tab- Preserve existing html when saving.

This keeps the </p> tag in but I am a bit disappointed that I haven't been able to set the </p> default.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved