Forum Moderators: open

Message Too Old, No Replies

FrontPage keeps adding height style to div

page unreadable because everything gets mashed together

         

ergophobe

5:50 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm maintaining a site that the owner of the site also works on. I use a text editor (HAPedit) and he uses FrontPage. I'm not sure which version, but it is identified as "FrontPage 5.0" in the meta generator tag.

The problem is that every time he touches the page, it adds a

style="width: 344px; height: 176px;"

to a div. That works fine in IE, because it ignores the height declaration, but in every other browser it tries to mush everything into the 176px box, including multiple images that are over 300px high and a whole bunch of text.

I don't know anything about FP and have never used it, so I'm asking the FP users whether there might be some setting he could apply that would prevent FP from adding this tag.

It might also be nice if I could simply keep it from otherwise mucking with my HTML, since it adds all kind of whitespace and other weird stuff to my pages.

Thanks much,

Tom

abbeyvet

12:37 pm on Sep 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Two things he can do:

1. Tools > Page Options >HTML Source
Make sure that the "Preserve existing HTML" option is selected

2. STOP with dragging the edges of DIVs in normal view - which is, I reckon, primarily what is causing this.

When looking at a page in normal view, divs are surrounded by a bounding box, with little black handles which if dragged, resize the div. If someone does this FP, quite sensibly when you think about it, assumes that they want to override the style sheet and so puts the new dimensions in.

That should sort the div thing and the whitespace thing also hopefully.

ergophobe

6:38 pm on Sep 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks abbeyvet. And thanks also for writing it in a straightforward and polite way so I can just send it on to the guy!

Of course, what I don't understand, is that it isn't overriding the stylesheet. There is none on the page in question (not very pretty page). Strangely, it adds a height style that is much too small to even fit in all the graphics in the div, not even counting the text. I can imagine he's dragging and making it that small.

When I get my other stuff offf the table, I'll redo the page for him and make him turn on the feature to preserve the HTML

Thanks again!