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

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 2109
Death Slaught
1,137 1GB
  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 Expert 4TB
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
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...
6
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...
1
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...
4
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...
1
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
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...
5
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...
21
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...
1
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.