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

image problem

Hi guys,
I've got a problem again, pesky css. I have a rounded box for a login. Its a
wrapper div containing three divs stacked on top of each other. In IE its
fine, but in FF the divs are seperated. I've tried IMG{display:block}, I've
tried IMG{vertical align:bottom}. I've set margins to 0, i've set line
height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers

--

Paul Watt
http://www.paulwatt.info
Apr 21 '06 #1
17 1489

"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:4a************@individual.net...
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a login. Its
a wrapper div containing three divs stacked on top of each other. In IE
its fine, but in FF the divs are seperated. I've tried IMG{display:block},
I've tried IMG{vertical align:bottom}. I've set margins to 0, i've set
line height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers


Dont worry, sorted it

cheers
Apr 21 '06 #2
Paul Watt wrote

"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:4a************@individual.net...
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a
login. Its a wrapper div containing three divs stacked on top of each
other. In IE its fine, but in FF the divs are seperated. I've tried
IMG{display:block}, I've tried IMG{vertical align:bottom}. I've set
margins to 0, i've set line height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers


Dont worry, sorted it


That's a relief!

--
Charles Sweeney
http://CharlesSweeney.com
Apr 21 '06 #3
On Fri, 21 Apr 2006 10:44:18 +0100, "Paul Watt"
<pa**********@wattio.freeserve.co.uk> wrote:
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a login. Its a
wrapper div containing three divs stacked on top of each other. In IE its
fine, but in FF the divs are seperated. I've tried IMG{display:block}, I've
tried IMG{vertical align:bottom}. I've set margins to 0, i've set line
height to 0. Now what?


Have you tried tables?

</gets coat>

Matt
--
Veritas Vincti
http://www.probertencyclopaedia.com
Apr 21 '06 #4
On 21 Apr 2006 10:59:59 GMT, Charles Sweeney <me@charlessweeney.com>
wrote:
Paul Watt wrote

"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:4a************@individual.net...
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a
login. Its a wrapper div containing three divs stacked on top of each
other. In IE its fine, but in FF the divs are seperated. I've tried
IMG{display:block}, I've tried IMG{vertical align:bottom}. I've set
margins to 0, i've set line height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers


Dont worry, sorted it


That's a relief!


Thank heavens! I shall be able to sleep tonight, afterall!

Matt
--
Veritas Vincti
http://www.probertencyclopaedia.com
Apr 21 '06 #5
Paul Watt wrote:
"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:4a************@individual.net...
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a login. Its
a wrapper div containing three divs stacked on top of each other. In IE
its fine, but in FF the divs are seperated. I've tried IMG{display:block},
I've tried IMG{vertical align:bottom}. I've set margins to 0, i've set
line height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers


Dont worry, sorted it

cheers


Umm, you may have fixed it /somewhere/ but not on the link above. Not
for me in the latest releases of Firefox and SeaMonkey.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Boycott shampoo! Demand the REAL poo!
Apr 21 '06 #6

"Ed Mullen" <ed@edmullen.net> wrote in message
news:Tf******************************@comcast.com. ..
Paul Watt wrote:
"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:4a************@individual.net...
Hi guys,
I've got a problem again, pesky css. I have a rounded box for a login.
Its a wrapper div containing three divs stacked on top of each other. In
IE its fine, but in FF the divs are seperated. I've tried
IMG{display:block}, I've tried IMG{vertical align:bottom}. I've set
margins to 0, i've set line height to 0. Now what?

http://www.paulwatt.info/test/supply/

Cheers


Dont worry, sorted it

cheers


Umm, you may have fixed it /somewhere/ but not on the link above. Not for
me in the latest releases of Firefox and SeaMonkey.


fixed on my local copy

paul
Apr 21 '06 #7
In article <44**************@news.ntlworld.com>,
Matt Probert <Via Usenet ONLY> wrote:
On Fri, 21 Apr 2006 10:44:18 +0100, "Paul Watt"
<pa**********@wattio.freeserve.co.uk> wrote:
I've got a problem again, pesky css. I have a rounded box for a login. Its a
wrapper div containing three divs stacked on top of each other. In IE its
fine, but in FF the divs are seperated. I've tried IMG{display:block}, I've
tried IMG{vertical align:bottom}. I've set margins to 0, i've set line
height to 0. Now what?


Have you tried tables?

</gets coat>


Actually that's a good suggestion. I see more consistency between
browsers in the way they display tables than the way they handle
CSS. It's gotten to the point where I'm about to give up on CSS for
layout, I'm so disgusted with how IE fails to conform to standards,
and I don't want to litter my pages with ridiculous hacks to
compensate for all the differences.

-A
Apr 21 '06 #8
To further the education of mankind, ax**@spamcop.net (axlq) vouchsafed:
Have you tried tables?

</gets coat>


Actually that's a good suggestion. I see more consistency between
browsers in the way they display tables than the way they handle
CSS. It's gotten to the point where I'm about to give up on CSS for
layout, I'm so disgusted with how IE fails to conform to standards,
and I don't want to litter my pages with ridiculous hacks to
compensate for all the differences.


Tables can be quite a pain, too. And the standards exist for the primary
reason (-whether the w3c realizes it or not) of making all (general web)
browsers work the same with the same markup. We're parsecs from that
utopean goal which will probably never be reached, but wouldn't it be nice
if you had something like a 98% level of confidence that some splotch of
markup would work identically in all browsers?

Css will evolve. I wouldn't give up too quickly.

--
Neredbojias
Infinity has its limits.
Apr 22 '06 #9
Paul Watt wrote:
I've tried IMG{vertical align:bottom}.

Dont worry, sorted it

Forget the hyphen, yes?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Apr 22 '06 #10
axlq schreef:
In article <44**************@news.ntlworld.com>,
Matt Probert <Via Usenet ONLY> wrote:

[snipped]

Have you tried tables?

</gets coat>

Actually that's a good suggestion. I see more consistency between
browsers in the way they display tables than the way they handle
CSS. It's gotten to the point where I'm about to give up on CSS for
layout, I'm so disgusted with how IE fails to conform to standards,
and I don't want to litter my pages with ridiculous hacks to
compensate for all the differences.

-A


If you have to apply hacks, it will be in the stylesheet.
That means you don't have to litter your pages.

Rob
Apr 22 '06 #11
In article <44***********************@news.xs4all.nl>,
Rob_W <ro************@hotmail.com> wrote:
axlq schreef:
I'm so disgusted with how IE fails to conform to standards,
and I don't want to litter my pages with ridiculous hacks to
compensate for all the differences.


If you have to apply hacks, it will be in the stylesheet.
That means you don't have to litter your pages.


That's not quite true. Try making a CSS-only drop-down menu
(without using Javascript) that works the same under IE and other
browsers. All the examples I have seen required conditional markup
hacks in the document, as well as separate stylesheets for IE.

An excellent example of a cross-browser non-javascript CSS-only
drop-down menu is here:
http://www.cssplay.co.uk/menus/final_drop.html

It's quite nicely done, but it does require hacks in both CSS and
HTML.

-A
Apr 22 '06 #12
axlq wrote:
In article <44***********************@news.xs4all.nl>,
Rob_W <ro************@hotmail.com> wrote:

If you have to apply hacks, it will be in the stylesheet.
That means you don't have to litter your pages.


That's not quite true. Try making a CSS-only drop-down menu


And why would I even want to? Those things are a PITA to use - I
wouldn't want any of my users to suffer with them.

BTW, contrary to popular belief, making them with CSS instead of JS does
*not* automatically make them more accessible.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Apr 23 '06 #13

On Fri, 21 Apr 2006 10:44:18 +0100, "Paul Watt"
<pa**********@wattio.freeserve.co.uk> wrote:
I've got a problem again, pesky css. I have a rounded box for a login. Its a
wrapper div containing three divs stacked on top of each other. In IE its
fine, but in FF the divs are seperated. I've tried IMG{display:block}, I've
tried IMG{vertical align:bottom}. I've set margins to 0, i've set line
height to 0. Now what?


I've just encountered a similar problem. What seems to be working is
eliminating all white space, including line breaks, between elements.
Otherwise, I get extra vertical space in Firefox and extra horizontal
space in Opera.

It would be nice if there were a white-space option to delete
white-space, so code like this code be formatted in a more readable
way.
--

Warren S. Sarle SAS Institute Inc. The opinions expressed here
sa****@unx.sas.com SAS Campus Drive are mine and not necessarily
(919) 677-8000 Cary, NC 27513, USA those of SAS Institute.
Apr 24 '06 #14
To further the education of mankind, sa****@unx.sas.com (Warren Sarle)
vouchsafed:

I've just encountered a similar problem. What seems to be working is
eliminating all white space, including line breaks, between elements.
Otherwise, I get extra vertical space in Firefox and extra horizontal
space in Opera.

It would be nice if there were a white-space option to delete
white-space, so code like this code be formatted in a more readable
way.


Yes, and I'd just like to add that Gecko seems to be pretty "lousy" in the
whitespace arena.

--
Neredbojias
Infinity has its limits.
Apr 24 '06 #15
Warren Sarle wrote:

What seems to be working is
eliminating all white space, including line breaks, between elements.
Otherwise, I get extra vertical space in Firefox and extra horizontal
space in Opera.
It is very possible that white space isn't the problem at all, but
simple margins. You may be assuming the element that appears to have
excess margins is the cause. Often, it is some other block near it instead.

This is no doubt true in the OP's case. He appears to think the img
element or its div container is the source of the gaps, when it is far
more likely the form and/or its paragraph elements are.
It would be nice if there were a white-space option to delete
white-space, so code like this code be formatted in a more readable
way.


FWIW, the only time I ever have trouble with white space is with WinIE
and list markup, notably with navigation menus. Gecko never gives me
trouble.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Apr 24 '06 #16
"kchayka" <us****@c-net.us> wrote in message
news:4b************@individual.net...
Warren Sarle wrote:

What seems to be working is
eliminating all white space, including line breaks, between elements.
Otherwise, I get extra vertical space in Firefox and extra horizontal
space in Opera.
It is very possible that white space isn't the problem at all, but
simple margins. You may be assuming the element that appears to have
excess margins is the cause. Often, it is some other block near it
instead.

This is no doubt true in the OP's case. He appears to think the img
element or its div container is the source of the gaps, when it is far
more likely the form and/or its paragraph elements are.


In my particular case, that is not possible, since all the relevant margins
are explicitly set to zero, and the only elements involved are images
and divs.
FWIW, the only time I ever have trouble with white space is with WinIE
and list markup, notably with navigation menus. Gecko never gives me
trouble.


Gecko creates useless DOM text nodes whenever there is nothing but
white space between two div elements. IE omits the useless text nodes.
I don't know whether this is covered by the standards, but I certainly
find IE's behavior to make more sense in this case.
Apr 26 '06 #17
To further the education of mankind, "Warren Sarle" <sa****@unx.sas.com>
vouchsafed:
FWIW, the only time I ever have trouble with white space is with
WinIE and list markup, notably with navigation menus. Gecko never
gives me trouble.


Gecko creates useless DOM text nodes whenever there is nothing but
white space between two div elements. IE omits the useless text nodes.
I don't know whether this is covered by the standards, but I certainly
find IE's behavior to make more sense in this case.


Ah ha! I _knew_ there was a worm in the snifter somewhere.

What is the big problem with browsers doing what they're suppose to, namely
make white space transparent? I wouldn't think it was that high of a
mountain to climb.

--
Neredbojias
Infinity has its limits.
Apr 26 '06 #18

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

Similar topics

2
by: Ohaya | last post by:
Hi, We've been having a problem with one particular page that has a button on it, and a "tall" image (top-to-bottom). The button calls some simple Javascript to print the frame in which the...
3
by: CanyonJ | last post by:
I've been running into a frustrating problem for a while now. I use image.FromStream to open a tif, then perform some drawstring methods, and then save the file again. The tiffs are in 1 bit per...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
3
by: Sandi | last post by:
I have a simple problem: I have an Access database (images.mdb) that has 2 columns: one is the id if the picture (an integer) and one (column named picture) is a field of type OLE Object which...
2
by: Andreas Viklund via DotNetMonster.com | last post by:
Hi! I am developing an application in ASP.NET that takes an image, that have been created with a digital camera or camera phone, and processes it, to get data from it. The image taken by the user...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
5
by: Ricardo Furtado | last post by:
I'm trying, for a week or two, to create a procedure in order to rotate the image in any picturebox control in a cephalometry software. I've found a web site that shows how that can be done:...
23
by: Peter | last post by:
I have a problem with a page show_image.asp that returns a jpg image under Windows XP Pro SP2. The page sets content type as: Response.ContentType = "image/jpg" While this works perfectly fine...
3
by: kayahr | last post by:
Hi there, I have a strange problem in Internet Explorer (IE6 and IE7). I'm writing a JavaScript application which allows the user to edit a photo composition. So when the user selects a photo then...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
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...
0
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,...
0
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...

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.