I've searched and searched and have not found a solution to suppress
the margin on form or href tags so that there is no space before or
after the tag. The only way I have found to do this is to place the
tags one after another without any spaces between them.
For example, a space gets rendered between these two href's when
displayed in firefox or IE.
<a href="#"><img border="0" height="10" src="test.gif" width="10"
/></a>
<a href="#"><img border="0" height="10" src="test.gif" width="10"
/></a>
But if I place them together without any spaces or linebreak, no space
is rendered.
<a href="#"><img border="0" height="10" src="test.gif" width="10"
/></a><a href="#"><img border="0" height="10" src="test.gif" width="10"
/></a>
Adding display:inline or margin: 0 doesn't have any effect on the href.
For a <form> tag display:inline gets rid of the line break but not the
space at the end of the tag.
Any ideas on a solution? 6 3816
snacktime a écrit : I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag.
If I may say so, always start searching in FAQs:
Web Authoring FAQ http://www.htmlhelp.com/faq/html/all.html
All My FAQs http://allmyfaqs.com/
Alt.html FAQ http://www.html-faq.com/
The only way I have found to do this is to place the tags one after another without any spaces between them.
For example, a space gets rendered between these two href's when displayed in firefox or IE.
<a href="#"><img border="0" height="10" src="test.gif" width="10" /></a> <a href="#"><img border="0" height="10" src="test.gif" width="10" /></a>
The above code is not sufficient in order to know what is going on. Are
those links in a table cell? Are those links inside a div? a positioned
layer? Is the space before/after due to normal flow? What's before and
what's after the links?
You have provided insufficient code to say.
But if I place them together without any spaces or linebreak, no space is rendered.
<a href="#"><img border="0" height="10" src="test.gif" width="10" /></a><a href="#"><img border="0" height="10" src="test.gif" width="10" /></a>
Adding display:inline or margin: 0 doesn't have any effect on the href. For a <form> tag display:inline gets rid of the line break but not the space at the end of the tag.
Any ideas on a solution?
Web Authoring FAQ: HTML Forms FAQ
10.4. How can I eliminate the extra space after a </form> tag? http://www.htmlhelp.com/faq/html/for...l#form-nospace
Gérard
--
remove blah to email me
Actually I was incorrect about the form tag when it comes to IE, but
the margin has no effect that I can tell on an href. Also, in firefox
you still get the same effect of a space after the form because it
doesn' appear you can set the margin on other form elements such as a
submit button. So if you have a space in your code between the last
form element and the ending form tag you still get a space between two
adjacent forms even if you have the margin set to 0.
As for the context, it is enough to answer my question. If the content
was surrounded by anything else I would have said so.
snacktime wrote: Actually I was incorrect about the form tag when it comes to IE, but the margin has no effect that I can tell on an href. Also, in firefox
There is no such thing as an href element or tag, it is an attribute of
an A element.
you still get the same effect of a space after the form because it doesn' appear you can set the margin on other form elements such as a
There is only one form element defined in the HTML specification. Other
elements nested inside a form element can be form controls (e.g. input,
text area, select).
submit button. So if you have a space in your code between the last form element and the ending form tag you still get a space between two adjacent forms even if you have the margin set to 0.
Whitespace is handled according to whitespace rules, which may vary from
browser to browser.
<URL: http://www.w3.org/TR/CSS21/text.html...ef-white-space > As for the context, it is enough to answer my question. If the content was surrounded by anything else I would have said so.
Your code appeared to be XHTML (e.g. '<img ... />'), which can be
rendered differently to HTML in some circumstances. No doctype was
hinted at, so only guesses remain.
You seem to think that there is an href element, you said you'd
attempted to modify the default style properties. You didn't say how
you attempted it, the context of your posts suggest you tried:
<style ...>
href {display: inline;}
</style>
Had that information been provided, the reason why that failed could
have been explained - but no indication was given as to how you
attempted to apply the style.
--
Zif
Zif wrote: snacktime wrote: Actually I was incorrect about the form tag when it comes to IE, but the margin has no effect that I can tell on an href. Also, in firefox
There is no such thing as an href element or tag, it is an attribute of an A element. you still get the same effect of a space after the form because it doesn' appear you can set the margin on other form elements such as a
There is only one form element defined in the HTML specification. Other elements nested inside a form element can be form controls (e.g. input, text area, select).
submit button. So if you have a space in your code between the last form element and the ending form tag you still get a space between two adjacent forms even if you have the margin set to 0.
Whitespace is handled according to whitespace rules, which may vary from browser to browser.
<URL: http://www.w3.org/TR/CSS21/text.html...ef-white-space >
As for the context, it is enough to answer my question. If the content was surrounded by anything else I would have said so.
Your code appeared to be XHTML (e.g. '<img ... />'), which can be rendered differently to HTML in some circumstances. No doctype was hinted at, so only guesses remain.
You seem to think that there is an href element, you said you'd attempted to modify the default style properties. You didn't say how you attempted it, the context of your posts suggest you tried:
<style ...> href {display: inline;} </style>
Jesus christ, is everyone on this list so anal? So I called an element
by the wrong name, anyone with half a brain would know what I meant
from the example. In any case I'm unsubscribing from this group. If
such a simple question evokes these types of responses, I'll go
elsewhere or figure it out on my own.
Chris
snacktime wrote: Jesus christ, is everyone on this list so anal? So I called an element by the wrong name, anyone with half a brain would know what I meant from the example. In any case I'm unsubscribing from this group. If such a simple question evokes these types of responses, I'll go elsewhere or figure it out on my own.
You come here asking for *free* help, provide a vague problem
description, use incorrect or misleading terminology, refuse to give code
samples or an URL, ignore given advice, then bitch about the result? Piss off.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
snacktime wrote: is everyone on this list so anal?
No, but our computers are.
anyone with half a brain would know what I meant
My browser has one processor but not even half a brain. As a general
rule, many of the problems posted round here are caused by exactly this
problem. _You_ might "know what you meant", but the browser never does
unless you tell it: in great detail and according to the proper rules.
Don't moan at me about it, we just tell them how we find them.
There's also the problem of context. Something that works fine in two
lines of example often fails on a real site because the server is
sending out headers claiming to be utf-welsh. Give us a URL, then we
get the full picture and what's really going on.
In any case I'm unsubscribing from this group.
Don't let the door hit you in the arse on the way out. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Hamm |
last post by:
Hi,
I'm trying to write a <form> whihc will retrieve a Web page on another
server. I have (essentially) this:
<form action="http://cgi.cs.indiana.edu/~oracle/digest.cgi">
<input...
|
by: Keiron Waites |
last post by:
I have the following code:
<input type="text" name="search" class="search_top"> <a href=""
onclick="window.location='search.inc.php'+document..search.
value; return false;"...
|
by: Wouter |
last post by:
Hi,
I try to make when i send a <form> that he dont open a new window. Is there
someone who know how i can make this whit javascript ?
Greets Wouter
|
by: phillip.s.powell |
last post by:
Has anyone ever seen anything like this before? One of my co-workers'
laptops fails to produce any HTML content found between well-formed
<form> tags (however, the pages produce fine in others'...
|
by: George |
last post by:
I'm using .NET framework 1.1 and VS.NET 2003 for a aspx web form.
There is a DropDwonList on the page and its SelectedIndexChanged event is
fired to the server normally, until when I add another...
|
by: Lakshmi Narayanan.R |
last post by:
Hi Experts
MasterPage.master
In this master page, no <form> tag is used.
Register.aspx
Here also no <form> tag. But the form elements are working fine inside the
<asp:content> tag
Is it Ok...
|
by: Nebulus |
last post by:
I'm having a really hard time with IE's innerHTML property and <form>
tags. If I use this code:
myDiv.innerHTML = "<form>This is a test</form>" in fireFox, the div tag
shows the content....
|
by: Dariusz Tomon |
last post by:
Hi
In my project I have got several webcontrol (ascx). How can I handle with
the problem:
I would like to have some ASPNET object (DropDownList, InputBox etc.) in one
webcontrol (this...
|
by: shotokan99 |
last post by:
for instance i do have this element but i dont have a <form>:
<input type="Text" name="myname" id="myname" size="30"...>
then i have this link:
echo'<a...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |