Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Height versus spacer image

Reply
Thread Tools

Height versus spacer image

 
 
shapper
Guest
Posts: n/a
 
      11-24-2006
Hello,

I am working on an Asp.Net 2.0 web site and I need to set the height of
a panel to 200px.

Should I use the Asp.Net 2.0 panel height property or should I try to
use a spacer.gif image?

I think that using height might give some problems .... I read this
somewhere.

Of course using height property is just much simpler and straight
forward.

Thanks,

Miguel

 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      11-24-2006
Miguel,
Anytime I need to force an item to be a certain height at least, I
use a spacer image. There are plenty of issues with height when you try to
set it in HTML or code. The browser may not recognize the css height
attribute, or it may not recognize it as valid for that element, or
sometimes even there's a bug in the browser that prevents it rendering the
height correctly even if it does detect it. Sometimes it make it easier as
well when working with other elements around it to avoid issues of odd
overlapping that can occur when controls use CSS.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"shapper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hello,
>
> I am working on an Asp.Net 2.0 web site and I need to set the height of
> a panel to 200px.
>
> Should I use the Asp.Net 2.0 panel height property or should I try to
> use a spacer.gif image?
>
> I think that using height might give some problems .... I read this
> somewhere.
>
> Of course using height property is just much simpler and straight
> forward.
>
> Thanks,
>
> Miguel
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Div Height = Image height. help muggslab HTML 1 02-01-2010 07:41 PM
Re: Mozilla versus IE versus Opera versus Safari Peter Potamus the Purple Hippo Firefox 0 05-08-2008 12:56 PM
equal? versus eql? versus == versus === verus <=> Paul Butcher Ruby 12 11-28-2007 06:06 AM
How do I make, store in memory and return spacer image in C#2.0/aspx? Mark S. ASP .Net 4 10-15-2006 03:21 AM
Where DO I put the image spacer for the menu to work? HTML 0 11-08-2005 05:52 PM



Advertisments