473,657 Members | 2,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why unwanted space?

Take a look at:

http://www.baldrian.no/HtmlPage.htm

Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?

How can I get rid of it?

Olav
Jul 24 '05 #1
9 2564
Olav Tollefsen wrote:
Take a look at: http://www.baldrian.no/HtmlPage.htm Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?


What is "the browser"?

--
Blinky Linux Registered User 297263
Killing all Usenet posts from Google Groups
Info: http://blinkynet.net/comp/uip5.html
*ALSO contains links for access to the NON-BETA GG archive interface*
Jul 24 '05 #2
Olav Tollefsen wrote:
Take a look at:

http://www.baldrian.no/HtmlPage.htm
Oops ...
<http://www.htmlhelp.co m/cgi-bin/validate.cgi?ur l=http%3A%2F%2F www.baldrian.no %2FHtmlPage.htm &warnings=ye s>
<http://validator.w3.or g/check?uri=http% 3A%2F%2Fwww.bal drian.no%2FHtml Page.htm&charse t=%28detect+aut omatically%29&v erbose=1>

Please get that fixed first and come back later.
Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?
Without having seen that page, I guess this is one of our most basic
standard questions.
<http://developer.mozil la.org/en/docs/Images,_Tables, _and_Mysterious _Gaps>

[...]

--
Volkm@r
Jul 24 '05 #3
Olav Tollefsen wrote
http://www.baldrian.no/HtmlPage.htm Why does the browser render some unwanted space (showing the
background color) below the buttons (image)


Having seen the page I'd say it's because of the image map. Try to move
the map, not the image, outside the table.

That said, isn't XHTML 1.1 a little over the top with a table layout
and the document served as text/html? Why do you use that doctype?

Jul 24 '05 #4
Olav Tollefsen wrote:

Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?

How can I get rid of it?

Try setting the margin and padding of the <img> to 0.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 24 '05 #5
Jim Moe:
Try setting the margin and padding of the <img> to 0.


Why? AFAIK browsers don't add either margin or padding to images by
default.

Jul 25 '05 #6
twaddle wrote:
Try setting the margin and padding of the <img> to 0.


Why? AFAIK browsers don't add either margin or padding to images by
default.

Yes, you are correct. I did not actually try the suggestion.
The browser is adding space/margin/padding below the image for no
observable reason. I have solved this problem before but have forgotten
what the solution is.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 25 '05 #7
On Mon, 25 Jul 2005, Jim Moe wrote:
The browser is adding space/margin/padding below the image for no
observable reason.


It's called the CSS specification. By default, in standards mode,
inline objects such as img are positioned on the font baseline,
leaving room below for descenders.

In many cases this can be avoided by using CSS to set vertical align
for img to "bottom" instead.

But in this case I'd have to counsel against using images that are
nothing more than images of text. This page is not only unfriendly to
unusual display situations, but fails a number of WAI criteria. Let
text be text, and propose a presentation using CSS. I don't care for
the look of the source code - if I had to deal with this I think I'd
rip out all the markup and start again using current good practice.
It looks like some relic from HTML3.2, complete with HTML syntax
errors (which is why I didn't bother to comment on it when originally
posted).

best regards
Jul 25 '05 #8
In article <42********@new s.broadpark.no> , "Olav Tollefsen" <x@y.com> wrote:
Take a look at:

http://www.baldrian.no/HtmlPage.htm

Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?

How can I get rid of it?


Can't tell you exactly why, but it's because of the doctype. Remove the doctype
and the gap is removed. Check it out:

http://www.sandman.net/misc/baldrian.html

--
Sandman[.net]
Jul 25 '05 #9
Sandman wrote:
In article <42********@new s.broadpark.no> , "Olav Tollefsen" <x@y.com> wrote:
Take a look at:

http://www.baldrian.no/HtmlPage.htm

Why does the browser render some unwanted space (showing the background
color) below the buttons (image) and above the blue cell?

How can I get rid of it?


Can't tell you exactly why, but it's because of the doctype. Remove the doctype
and the gap is removed. Check it out:

http://www.sandman.net/misc/baldrian.html

better yet use the transitional xhtml 1.0 dtd:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">

it works and is better than no dtd
Jul 25 '05 #10

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

Similar topics

3
2222
by: StopBsod | last post by:
Hello group, I use XSLT to output a unix shell script based on the content of an XML file : The XSLT : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:template name="haut" match="/rhythmdb">
6
3164
by: Steve K | last post by:
Hi, The site I've just created, when tested on a windows PC has an unwanted white space (about 2-4 pixels high) in between two tables. I would like there to be zero space there. Here is the test site: http://aem.cornell.edu/farmlink/ The line goes all the way across the page and it's where the NYFarmlink Logo is, the two hands shaking, it goes right through that graphic and
3
3500
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that the nav sits on that border. There is a thin red top border on footer for testing. http://www.tsmchughs.com/test/ On that page, all is as expected. However, on the long page http://www.tsmchughs.com/test/long
3
411
by: Buz | last post by:
I am having a problem with extra, unwanted space showing up on my web form tables. I've tried hand coding and can get the htm file to display fine. But as soon as I bring the form into Visual Studio, convert it to an aspx web form, and insert my user controls, I start getting extra blank space between my rows, even when I give an explicit "height" attribute. The problem seems to occur with tables that have rowspans and/or user...
16
2785
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? As shown below line #21, I should remove the unwanted characters in input stream there at that time. Do I miss some other possible errors in i/o which will happen to occur sometimes in other places? And welcome your kind comments on following the...
3
2578
by: et | last post by:
How can I strip out unwanted characters in a string before updating the database? For instance, in names & addresses in our client table, we want only letters and numbers, no punctuation. Is there a way to do this?
1
2492
by: mhillman | last post by:
Hi, I am creating a Database which will generate a Record of Achievement report with a pupil's lessons on the report. The problem that I am having is that I cannot completely hide the unwanted fields. I have used the can shrink feature and it hides the report but leaves a space on the report where it used to be. Do you have any ideas to how to remove this space as well??
4
4446
by: Magnus Warker | last post by:
Hello group, I am producing a form within a table: <table> <tr> <td> <form> ... </form>
3
3994
by: Joe Stateson | last post by:
I have a template field that contains filenames that are (or can be) on a unix system. The hypen (and others) is a valid filename character in unix. When I display the name of the file I get an unwanted break and the text wraps at the hyphen. NavigateUrl bound to Eval("file_name","//acqlib/data/{0:c}") launches the file just fine since there is nothing wrong with the '-' on the linux system which is the acqlib server. But binding...
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.