473,799 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does image not show the same in Firefox as in IE?

I am supposed to style the image element selector with margins of 0 on top and bottom and auto on left and right, a border that is solid, thick, and black, and the display property value is to be block. The image shows just like the book says it should in IE but not in Firefox. Am I messing up or is it just Firefox?

Expand|Select|Wrap|Line Numbers
  1. image {
  2.    margin: 0 auto;
  3.    border: solid thick black;
  4.    display: block;
  5. }
Nov 2 '10 #1
2 2123
Death Slaught
1,137 Top Contributor
  1. Are you using a doctype? If so, which one?
  2. Give the image a set width and height.
  3. Add
    Expand|Select|Wrap|Line Numbers
    1. * { 
    2.     margin: 0; 
    3.     height: 0; 
    4. }



Thanks, Death
Nov 3 '10 #2
drhowarddrfine
7,435 Recognized Expert Expert
If it works in IE but not Firefox then your markup is wrong. Never, ever use IE as a reference for how things should work. Inept at best, it is 12 years behind all others in modern standards and practices. Never, ever trust IE to do anything right.
Nov 3 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3163
by: ABC | last post by:
I am a total newbie to javascript. I have only done Frontpage. I am trying to do a page of image show----I only managed to find a javascript to create pop up windows for the chosen image. Almost good but I want better. http://www.fontstuff.com/frontpage/fptut17.htm I want the viewer to lick on the text word in the main page and the corresponding image will show in the iframe instantly, (or text in the frame and image on the main...
6
1783
by: greenflame | last post by:
I have been working for some time on a script that will show a matrix with the elements aligned on the right for sometime and finally got it to work. Then I did some patching up and ran the script and it showed a blank page and no error in the status bar. The script is rather long and I call functions that do things that I may not need the functiosn for but they are there because I so that task so many times that I jsut made it into a...
1
2796
by: Georg Scholz | last post by:
Hello, The class "Control" contains a documented Property "ControlType". So for example, in a form, you can write code like this: Dim c as control set c = me.Controls("textbox1") if c.ControlType = acTextBox then ...
4
2760
by: Nathan Baker | last post by:
Hey, I am trying to subclass a button to create a control similar to the Firefox/IE dropdown button. My first step is to draw the 'down arrow' on the button. I overrided the OnPaint method thusly: protected override void OnPaintBackground(PaintEventArgs pevent) { base.OnPaintBackground(pevent); paintArrow(); }
1
12938
by: Whizsri | last post by:
HI, I have encountered this: document.getElementById('Show').click() does not work in Firefox I also tried: document.getElementById('Show').submit.click() with the same result.
1
3170
by: Claes Wedin | last post by:
I have problems using DataGridViewImageColulmn: The Image does not show (only a red X is shown). I tried this: - Create New WindowsForms app - In the Form: Drag a DataGridView control to the form - Add 2 columns and chose DataGridViewImageColulmn for one of them - In the Properties of this column, select property Image - Select Local resource and hit button Import
5
2150
by: Herkum | last post by:
I created this generic AJAX Handler to work with Firefox and IE. However, it seems that somewhere in updating Firefox to 2.0.0.9 that the handler assigned to onreadystatechange is no longer getting called. This still works for IE. Can someone help me add to this so that I can get it working with Firefox again? var ASYNCH = true; var REQUEST_TYPE = 'POST'; var AJAX_URL = '/ajax.cgi'; function httpRequest() {
21
3840
by: neovantage | last post by:
hey all, When i include thickbox scrip tin html document then it does not show special characters like "ü". But wrote question mark in firefox mozilla and alian characters in IE. But without including thickbox it works fine. How can i fix that issue. Kindly help me out to sort my Problem
1
3660
by: sva0008 | last post by:
i have a auto suggest script that does not work in firefox , works great on IE. /******************************************************* AutoSuggest - a javascript automatic text input completion component Copyright (C) 2005 Joe Kepley, The Sling & Rock Design Group, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software...
0
1340
by: AkbarAzizi | last post by:
Hi, Is there anybody who knows why my following java/Groovy code does not work in Firefox? The function ImageIO.createImageInputStream returns NULL in Firefox. The code works fine in Windows Explorer. -------------------------------------------------------- def getImageFormat(CommonsMultipartFile imageFile) {
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
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
6805
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
5463
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
4139
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
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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.