HighDots Forums  

NOT resize an element?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss NOT resize an element? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
lcplben
 
Posts: n/a

Default Re: NOT resize an element? - 11-06-2009 , 11:02 AM






On Nov 3, 7:02*am, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote:
Quote:
On 2 Nov, 16:10, lcplben <b... (AT) sellmycalls (DOT) com> wrote:

So: in the face of the user's resizing the page, is there any way I
can put the ever-encroaching banner out of the way?

How about using Z index and sizing it with ems?
Yes, that seems like the right solution.

Quote:
Lets say your banner has content that needs "a few lines of text"
height to read it in. So set it to a good size for that (in ems), and
use Z to make it sacrifice and suffer first if the window gets really
squashed.
Yup.

Quote:
The problem is that you're now resizing an image on the browser, which
tends to look bad. So instead, why not keep your banner image
displayed at the same size as the bitmap you're sending (always a good
idea, and with the obvious corrolary) and size it in pixels instead.
Your banner is now "displayable" and might even be viewable (depending
on the user's eyes). Z index against keeps it secondary to the
content.

Neither of these use cms. You just can't guarantee how big a virtual
cm is going to be when it hits the real world.
Thanks, Andy. That was the answer I was looking for. I appreciate it.

-- ben

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.