HighDots Forums  

Too much space after code insertion - WHY??

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Too much space after code insertion - WHY?? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Benfrain
 
Posts: n/a

Default Too much space after code insertion - WHY?? - 11-18-2004 , 08:29 AM






OK, if you take a look at the left hand side of our site www.buyit247.net you
will see a space to add your name to a weekly offers list. However there is
white space below the 'sign up' box I would like to get rid of. However, I
don't seem to be able to do this. I have deleted any text or hard returns and
whilst there does not appear to be any white space there in Dreamweaver as soon
as I view it in Explorer it is there. Any one know why? Thanks in advance -
Ben


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 08:38 AM






Control your margins with CSS, e.g.,

form, input { margin-top:0; margin-bottom:0; } /* adjust to suit */

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Benfrain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
OK, if you take a look at the left hand side of our site www.buyit247.net
you
will see a space to add your name to a weekly offers list. However there
is
white space below the 'sign up' box I would like to get rid of. However, I
don't seem to be able to do this. I have deleted any text or hard returns
and
whilst there does not appear to be any white space there in Dreamweaver as
soon
as I view it in Explorer it is there. Any one know why? Thanks in
advance -
Ben




Reply With Quote
  #3  
Old   
twocan's
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 08:39 AM



hi yea,
maybe if you set the margines on the form to 0

..form { margin-top: 0; margin-bottom: 0; }


regards
twocan's



"Benfrain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
OK, if you take a look at the left hand side of our site www.buyit247.net
you
will see a space to add your name to a weekly offers list. However there
is
white space below the 'sign up' box I would like to get rid of. However, I
don't seem to be able to do this. I have deleted any text or hard returns
and
whilst there does not appear to be any white space there in Dreamweaver as
soon
as I view it in Explorer it is there. Any one know why? Thanks in
advance -
Ben




Reply With Quote
  #4  
Old   
David Stiller
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 08:41 AM



Benfrain,

Here's the HTML for that section. We're inside a table cell (the <td>),
then the form, and finally an <h1> tag. It's the <h1> causing your space.
Odd that it's in there at all, because <h*> tags are supposed to be used for
headers, which is why they have certain built-in styling like space below.

Flip to code view and snip the <h1> tag (and its closing </h1> pair) by
hand. You can put that align="center" attribute into the <td> instead.
While you're at it, you can get rid of the </font><font size="-7"> tag
between the "L" and the "atest ...". In fact, you can get rid of all the
font tags in this section. The reason you had them in there was to
compensate for the <h1> tag, which, as the header that it is, makes text
large.

<td bgcolor="#FFFFFF">
<FORM ACTION="http://lb.bcentral.com/ex/manage/subscriberprefs.aspx"
METHOD="POST">
<h1 align="center">
<font size="-7">L</font><font size="-7">atest offers by email...
<INPUT NAME="email" TYPE="TEXT" size="18" />
<INPUT TYPE="HIDDEN" NAME="customerid" value="13127" />
<INPUT TYPE="SUBMIT" value="Sign up" />
</font>
</h1>
</FORM>
</td>


David
stiller ( at ) quip ( dot ) net



Reply With Quote
  #5  
Old   
jojo
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 10:28 AM



twocan's wrote:
Quote:
hi yea,
maybe if you set the margines on the form to 0

.form { margin-top: 0; margin-bottom: 0; }
Hi Twocans

No need to make that a class.

form{
margin: 0;
}

will do what you want without having to apply a class to the form.


--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------


Reply With Quote
  #6  
Old   
Benfrain
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 11:07 AM



Right, sorry to be a bit of a newbie here, put where exactly should I put the


form{
margin: 0;
}

bit?? I aplogise but I never even look at code!

Reply With Quote
  #7  
Old   
twocan's
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 12:02 PM



Look in the head of your page, you already have some style tags but nothing
inside them

<style type="text/css">
<!--
-->
</style>


change that to what is below here , regards twocan's



<style type="text/css">
<!--
form, input { margin:0;}
-->
</style>









Reply With Quote
  #8  
Old   
David Stiller
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 12:16 PM



I looked at the code again, and it is, indeed, the form style everyone
else has mentioned, rather than what I thought. That aside, you should
still give consideration to the proper use of <h*> tags, <font> tags, and so
on. Google looks at your <h*> tags, for example, in determining (at least
partly) what your page's content is all about. It makes sense, then, to
provide meaningful header tag content, rather than a series of additional
nested tags, which may confuse search engines.


David
stiller ( at ) quip ( dot ) net



Reply With Quote
  #9  
Old   
Benfrain
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 12:42 PM



Ah, ok I just figured it out, you just do it with the CSS styles thing at the right

Reply With Quote
  #10  
Old   
twocan's
 
Posts: n/a

Default Re: Too much space after code insertion - WHY?? - 11-18-2004 , 02:04 PM



lol




"Benfrain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Ah, ok I just figured it out, you just do it with the CSS styles thing at
the right



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.