PDA

View Full Version : CSS Positioning slow down window?


Fitzbean
08-28-2002, 06:18 PM
hi all, when you declare the position of a table using the STYLE= tag, with an IFRAME within it, i've noticed that scrolling the iframe window, or highlighting text reacts slower. I'm not sure if they style= is what is doing it, but I can't seem to figure this out. Has anyone experienced "slow" windows, and know what it is?

I'll supply a link if someone thinks it would help.

<TABLE id=main_popup class=super_window_visible cellspacing=0 style="TOP: 149px; LEFT: 124px; HEIGHT: 598px; WIDTH: 900px; filter:alpha(opacity=100);">
<TR>
<TD ALIGN=LEFT VALIGN=TOP class=popup_body>
IFRAME NAME=main ALIGN=CENTER HEIGHT=591 WIDTH=100% SRC=/news/index.php?show_news=1 FRAMEBORDER=0></IFRAME></TD>
</TR>
</TABLE>

Thanks!

beetle
08-28-2002, 06:40 PM
Uh a few things about your HTML first

1) Surround all your attribute values with double quotes
2) Don't use uppercase for your tag names, attributes, and CSS properties
3) You are missing the opening caret (<) to your iframe tag
4) Why the alpha filter on the table? It's set to 100, which does nothing? Do you access it later?

Yes, a link would be helpful

Fitzbean
08-28-2002, 09:15 PM
I PM'd you more info beetle, thnx.

Roy Sinclair
08-29-2002, 06:19 PM
Originally posted by Fitzbean
I PM'd you more info beetle, thnx.

Now that's a really good idea. :rolleyes: Take the thread private so you can only get help from one person instead of anyone who happens by and might be able to help and nobody else with a similar problem will ever know what your ultimate solution turned out to be. That way those who volunteer their time on these boards get even more chances to answer the same questions.

In short, I'm not sure you understood the reason for operating this as a forum instead of a "chat room". You should only take things private when there's sensitive information involved. It's to your advantage when you don't have to do that.

Fitzbean
08-29-2002, 06:45 PM
Hey Roy - no need to be so rude. I know what the forums are here for - I know how they work, and the ultimate goal of having them. The PM I sent him contained the web address; which I did not want to reveal publically because the site is not done yet. So, it was private information. Also, he came to no conclusion as to why it was happening, or solution. If he had, I would have immediately reported it back here. I did find a solution; one of which I was coming to post just now.

For some reason; one of which I don't know why - maybe someone does; when I delcared the table's position via the inline STYLE tag, a decrease of performace was observed, as well as textarea box updating problems when the cursor was moved. I moved the style into a <STYLE type="css/text"> and then refered to the CLASS and the annomolies vanished. The only reason I was declaring it in the <table> tag to begin with was because the demensions were being generated dynamically (3 posibilities) - so I made 3 different classes, with the diff demensions and refer to them instead. Hope this helps someone.