Forum Moderators: open

Message Too Old, No Replies

FrontPage paragraph formatting

are results OK in other browsers?

         

austtr

4:21 am on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FP menus offer a Format > Paragraph option where you can set left and right offsets. The resulting html code looks like:

<p style="margin-left: 20; margin-right: 20">

Do all the other major browsers handle this the same way. I'd hate to churn out hundreds of pages that don't display correctly in other browsers.

tedster

12:11 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code should declare units - 20px for instance. I'm not sure if all browsers will handle omitted units the same way. They would certainly be within the W3C recommendation if they ignore the style declaration when units are not there.

With the "px" the code would be cross-browser safe.

Alternative Future

12:22 pm on Apr 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would it not be an idea to have an external style sheet so that if there were ever to be any conflict between browsers it wouldn't be such a headache to redo all the inline elements?

Just my two pence...

-gs

scottmack

12:35 am on Apr 12, 2003 (gmt 0)

10+ Year Member



First post

Definitely add px to the margin. NS4 doesn't do margins right - instead of a left margin of 20px; it adds 20px to Ns's default margin - so the margin is? 30px - 40px approx.
It's a good idea to have IE5+, NS4, NS6-7 on your computer to test for styles (CSS)