473,394 Members | 1,224 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,394 software developers and data experts.

Help w/extra space between controls (and i don't want the space)

dw
hello -

first, let me state that i am an Asp.Net rookie.

here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.

is there anything i can check or look at to help with this?

thanks
- will
Jul 23 '06 #1
5 1913
Have you set the cellpadding and cellspacing and border properties of your
table to 0 (eg: <table cellpadding="0" cellspacing="0" border="0">)?

"dw" wrote:
hello -

first, let me state that i am an Asp.Net rookie.

here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.

is there anything i can check or look at to help with this?

thanks
- will
Jul 24 '06 #2
Things to try (if you haven't already):

- try viewing your page in different browsers to see if they all
exhibit this behavior; if it's only one browser, then you might want to
weigh the pro's & con's of spending time to fix...
- try deleting all spaces and line breaks in the source for those
controls that are giving you a difficult time (line the tags in your
source up on one line, rather than hitting return to make the code look
good...) (I'll admit, this isn't 'good technique', but I've had ASP.NET
do things that are very bizarre...)
- ensure that there were no <p></ptags injected by the designer...
these add spaces


dw wrote:
hello -

first, let me state that i am an Asp.Net rookie.

here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.

is there anything i can check or look at to help with this?

thanks
- will
Jul 24 '06 #3
dw
Thanks for the advice. I checked...and the table cellpadding and cellspacing
were set to 1. I set to "0" and the problem remains.

"GarthS" wrote:
Have you set the cellpadding and cellspacing and border properties of your
table to 0 (eg: <table cellpadding="0" cellspacing="0" border="0">)?

"dw" wrote:
hello -

first, let me state that i am an Asp.Net rookie.

here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.

is there anything i can check or look at to help with this?

thanks
- will
Jul 24 '06 #4
dw
Thanks for the suggestions.
- I viewed the page in Firefox (normally we use only IE) and the page
rendered the same in both browsers
- There were not extra <ptags or breaks or anything.
- I reviewed the source again...even ran through the File Compare
utility....and no differences!

"Greg9Strat" wrote:
Things to try (if you haven't already):

- try viewing your page in different browsers to see if they all
exhibit this behavior; if it's only one browser, then you might want to
weigh the pro's & con's of spending time to fix...
- try deleting all spaces and line breaks in the source for those
controls that are giving you a difficult time (line the tags in your
source up on one line, rather than hitting return to make the code look
good...) (I'll admit, this isn't 'good technique', but I've had ASP.NET
do things that are very bizarre...)
- ensure that there were no <p></ptags injected by the designer...
these add spaces


dw wrote:
hello -

first, let me state that i am an Asp.Net rookie.

here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.

is there anything i can check or look at to help with this?

thanks
- will

Jul 24 '06 #5
In article <CA**********************************@microsoft.co m>, dw
<dw@discussions.microsoft.comwrites
>hello -

first, let me state that i am an Asp.Net rookie.
Doesn't matter, this sounds more like an HTML problem, albeit one
probably caused by the IDE.
>here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up,
Side issue, but you shouldn't be doing this. There was an excuse for
using tables for layout maybe seven or eight years ago, but nowadays
there's no excuse for it. Use CSS and you will see significant benefits.
Search Google for web design standards and read up a bit and you'll see
what I mean.
and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site, the controls
have extra spacing.
Look at the source that is produced. Are there spaces or line breaks
there? Many browsers incorrectly treat these are real space and move
other elements apart.
>is there anything i can check or look at to help with this?
Maybe post some of the HTML. Just a small sample that exhibits the
problem. Can't really diagnose it without seeing some code.

Also, check you are in standards mode not quirks mode as that can affect
how the browser renders your page. Again, search Google for info if you
don't know what this means.

HTH
>thanks
- will
--
Alan Silver
(anything added below this line is nothing to do with me)
Jul 30 '06 #6

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

Similar topics

4
by: Sidharta | last post by:
Hi all, how come this doesn't work????? # convert to unix new lines $text = preg_replace("/\r\n/", "\n", $text); # remove extra new lines $text = preg_replace("/\n+/", "\n", $text); is...
4
by: mappo | last post by:
There are about a million posts on how to get rid of the extra space _after_ the form end-tag, but I can't find any that solve my problem: extra space _in_ the form tag. I have a table nestled...
2
by: Steve K | last post by:
While reading "Eric Myer on CSS" I decided it was time to replace the buttons on my page (which were graphics) with some CSS "buttons" but I hit some snags. The first set of buttons I replaced...
28
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
6
by: michaelzap | last post by:
I can't seem to remove some extra margin/padding from my design on this site: http://www.kyowa-usa.com/ IE displays it properly (no space between the menus and other elements and the outer...
1
by: Matt Bush | last post by:
Using .NET Framework 1.1 and Visual Studio .NET 2003. Language is VB.NET. When loading an XML String using XMLDocument.LoadXml we are getting an extra space inserted into abbreviated end tags: ...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
8
by: dancer | last post by:
Using ASP.net 1.1 to create user input form. When I put a RequiredFieldValidator I have extra space at the bottom of the cell, as if I had put a <br>. When I comment out the...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.