Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help w/extra space between controls (and i don't want the space)

Reply
Thread Tools

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

 
 
=?Utf-8?B?ZHc=?=
Guest
Posts: n/a
 
      07-23-2006
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FydGhT?=
Guest
Posts: n/a
 
      07-24-2006
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

 
Reply With Quote
 
 
 
 
Greg9Strat
Guest
Posts: n/a
 
      07-24-2006
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></p> tags 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


 
Reply With Quote
 
=?Utf-8?B?ZHc=?=
Guest
Posts: n/a
 
      07-24-2006
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

 
Reply With Quote
 
=?Utf-8?B?ZHc=?=
Guest
Posts: n/a
 
      07-24-2006
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 <p> tags 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></p> tags 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

>
>

 
Reply With Quote
 
Alan Silver
Guest
Posts: n/a
 
      07-30-2006
In article <(E-Mail Removed)>, dw
<(E-Mail Removed)> writes
>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)
 
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
space between controls Alejandro Penate-Diaz ASP .Net 3 02-28-2005 02:57 PM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments