473,383 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Height versus spacer image

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

Nov 24 '06 #1
1 1104
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" <md*****@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegro 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

Nov 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: MyndPhlyp | last post by:
I've been busting my head trying to figure this out for quite some time. With IE6 and NS7, no problems. I can simply code the HTML <img height="100%"> and be done with it. But NS4 and NS6 (and...
11
by: Not4u | last post by:
Hello, I have a problem with CSS code. I want to have one menu column with a fixed width and a 100% height and the rest of the page for content. ---------------- |.|.|<--100%-->|...
8
by: Rithish Saralaya | last post by:
I want a row/cell of 1px height. This is what I have tried to achieve that. <TR><TD><IMG HEIGHT=1 SRC='http://myserver.com/blank-small.gif'></TD></TR> However, the row does take more than 1px....
3
by: Timmy | last post by:
For some reason IE6 does inserts a minimum default height of a div. I'm trying to set a height:1px; which works fine on Mozilla. Does anyone know how to get IE to display the same 1px div height? ...
2
by: Robson Carvalho Machado | last post by:
Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not...
4
by: rfox | last post by:
I have a two-column layout where I want the left column to have a colored background while the right column (main content div) has a white background. Please see...
10
by: dtmfcc | last post by:
My website is at www.simi-therapy.com My CSS is at http://www.simi-therapy.com/simitherapy-screen.css Question -- on the dark blue bar under the beach image, one change caused another...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I have a gridview and I need it to display correctly in Opera. I need to set the row height, so that even on the last page of data all the rows are the same height as on the other pages. ...
19
by: Rabel | last post by:
I have a page that is using tables (please no comments about this - I understand it should be css but firefox created this template) I have a menu down the left side and the bottom is supposed to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.