By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,781 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,781 IT Pros & Developers. It's quick & easy.

Can anybody rewrite CSS to remove space between images in IE8?

P: 7
Hi everyone,

I have to fix this asap, and I tried all I know, but there was no joy.

Please, take a look at
Expand|Select|Wrap|Line Numbers
  1. http://stampamajica.in.rs/
There are 3 html pages there. Can anybody tell me how to fix the code to remove space between images in ie8?

Your help is very much appreciated!

Sincerely,
Mladen
Apr 23 '11 #1
Share this Question
Share on Google+
6 Replies


drhowarddrfine
Expert 5K+
P: 7,435
You will never get IE to attempt to perform like the other far more modern browsers without a doctype. Add this to your first line:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
This will take you out of quirks mode. However, I'm not sure how this will affect the other browsers so we'll see.
Apr 23 '11 #2

P: 7
Tnx drhowarddrfine for the answer!

I just added (as I tried before) the following code (default in my old DW8 - It was working nice few years a ago)

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
All the same. I manage to get rid of horisontal spaces in index with this code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <style type="text/css" media="screen">
  3. p span{
  4.     display:block;
  5.     float:left;
  6. }
  7. </style>
  8.  
Reg,
Mladen
Apr 23 '11 #3

P: 7
I just checked. It looks fine in ff and chrome. There will not be much visits with other browsers until site is redesigned.
Apr 23 '11 #4

drhowarddrfine
Expert 5K+
P: 7,435
The transitional doctype is for old web pages that are transitioning to modern markup. New web pages have no need for, and should not use, the transitional doctype.
Apr 24 '11 #5

P: 7
Thank you. I Change it as you said. All 3 pages starts with:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
seems like this made a more horisontal space, but hope it is a good way to go.

Reg,
Mladen
Apr 24 '11 #6

P: 7
Solved.
I reset CSS with this code:
Expand|Select|Wrap|Line Numbers
  1. http://meyerweb.com/eric/tools/css/reset/
(code added just after the <style>)
Apr 30 '11 #7

Post your reply

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