Forum Moderators: open

Message Too Old, No Replies

Another Layer Problem

A very quick question

         

dnimrodx

11:43 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



Hi,

Is it possible to resize a layer? <DIV>

For what I have learnt so far, width/height properties are read-only; and there is no ResizeBy/ResizeTo methods like Netscape (v4?) used to have...

Does anyone have a suggestion?

Thanks alot!

dnimrodx

11:55 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



What about <TD> tags? Is it possible to resize them?

Purple Martin

11:56 pm on Feb 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Those properties are not read-only, you can change them on-the-fly with JavaScript to resize them.

N4 is now so rare for most sites that as long as you make sure the content is still readable you can usually not bother making things look too pretty for N4 users (although some sites still get a lot of N4, so check your own stats). N6+ can resize divs with no problem.

dnimrodx

12:01 am on Feb 10, 2004 (gmt 0)

10+ Year Member



N6+ can resize divs with no problem.

I take it this will also work with IE?

Purple Martin

12:03 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about <TD> tags? Is it possible to resize them?

Yes, but... nah forget it. Yes!

Purple Martin

12:05 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I take it this will also work with IE?

Yep.

IE4 and IE5 use document.all to reference objects.

Other browsers use document.getElementById to reference objects.

A search will give you the details.

dnimrodx

12:22 am on Feb 10, 2004 (gmt 0)

10+ Year Member



Yes I am aware of that as I implement both ways in my webpages to ensure compatibility.
What was really concerning me was the fact of not being able to resize a particular div (layer) in one of my pages.

I will look into it again as it surely must be my fault.

Thanks for the tips :)