473,320 Members | 2,111 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,320 software developers and data experts.

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

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
6 4175
drhowarddrfine
7,435 Expert 4TB
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
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
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
7,435 Expert 4TB
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
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
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

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

Similar topics

8
by: JT | last post by:
i have written some asp that reads a fixed length text file, line by line, inserting each line into my database. my problem is that the text file format seems to have extra space at the end of the...
9
by: Daniel | last post by:
Hi I'd like to discuss the following problem: How to remove the space between two images (img)? <img alt="First" src="first.gif"> <img alt="Second" src="second.gif"> I tried:
8
by: Joseph | last post by:
I have a textBox that people writes stories in it. They can use for format. I have Aspell installed on the server, so people can make correction to their text. Sometimes, they forget to add a...
2
by: Beffmans | last post by:
Hi How do i remove the space below the 'hello'? <TABLE> <tbody> <tr> <td> <asp:panel id="pnlTop" Runat="server"> <TABLE>
3
by: Kentor | last post by:
Hello, I'm looking for a script that will be javascript/php compatible that will take existing images from a database and will allow editing/removing/adding new images. If JS is on then it should...
8
by: voroojak | last post by:
i want to remove space in my table. it is a text box and i want to remove the space after the character. the field is integer thanks aot
9
by: voroojak | last post by:
I cant remove the space in my table. i used Trim and replace. but still it sis not working. Dim campign_number As Integer campaign_number = Trim(Me.tbx_campaign_number) With rst ...
5
by: Steve | last post by:
I'm getting string returned from my Database with a space in front of it, it sometimes it looks like this 8 9 10 1 and so one, how can I remove the white space in front of the numbers? Its...
4
by: ashish1779 | last post by:
hi I am new in PHP, i have face one problem when I crawl any site and i have to save the whole HTML content in database, on that time all the HTML tags are changes into the extra space in content...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.