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

Padding in internet explorer

Hi,

For some reason my webpage is not accounting for the padding I have added in my css file. In firefox and Safari it is fine but not in IE version 7. I am new to css html so have no clue as to why this is.

If you visit the page at www.jgurteen.co.uk/resolve/test.html in IE you will be able to see the problem

the blue and yellow div tags should have padding.

for the css file visit ...resolve/dinard.css

any ideas as to why this is?

thanks
Nov 10 '08 #1
2 2309
David Laakso
397 Expert 256MB
Of course it is not working in IE. No doctype. No work in IE.

A doctype and proper character encoding has been added to your page (see below). It now validates XHTML 1.0 Strict. And works as intended in IE/6.0 and IE/7.0.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta name="generator" content=
  6. "HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
  7. <meta http-equiv="content-type"
  8. content="text/html; charset=utf-8" />
  9.  
  10. <!--
  11. <html>
  12.  
  13.   <head>
  14. -->  
  15.  
  16.  <link rel="stylesheet" type="text/css" href="dinard.css" />
  17.  <title>Dinard</title>
  18.    </head>
  19.  
  20.  
  21. <body>
  22.  
  23.  
  24. <div id="wrap">
  25.      <div id="topstrip">
  26.  
  27.      <div id="highertopstrip"></div>
  28. <div id="middletopstrip">
  29.  
  30.      <a href="index.html">HOME</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  31.      <a href="location.html">LOCATION</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  32.      <a href="activities.html">ACTIVITIES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  33.      <a href="rooms.html">ROOMS</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          
  34.      <a href="tariffs.html">TARIFFS</a>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
  35.      <a href="availabilty.html">AVAILABILITY</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          
  36.      <a href="bookings.html">BOOKINGS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
  37.      CONTACT
  38.  
  39. </div>
  40.      <div id="lowertopstrip"></div>
  41.  
  42.  
  43. </div> 
  44.  
  45. <div id="content">
  46. <div id="maintext"></div>
  47. <div id="mainimage"></div>
  48. </div>
  49. <div id="lowerstrip"></div>
  50.  
  51.  
  52. </div>
  53.  
  54. </body>
  55. </html>
  56.  
  57.  
Nov 10 '08 #2
David Laakso
397 Expert 256MB
As of this writing, you're still running an invalid file . That will never do. Your markup is still not valid. Compare the file I posted to the forum with your file you now have online. Note what I commented out, with what you neglected to comment out.

Think of the w3c Markup Validation Service as your best friend.

PS I do not play games, and you are more than welcome...
Nov 11 '08 #3

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

Similar topics

2
by: AGChandler | last post by:
Hi, I have a div (class = "brands") containing other divs, each of which contains an image. I'm trying to set padding around the images, and my style seems to work okay on all but Explorer (I'm...
19
by: A.Translator | last post by:
I have an unordered list as menu and want some space at the bottom, underneath the last <li>. I have tried: setting bottom-margin to ul setting bottom-margin to containing <div> setting padding...
2
by: Knoxy | last post by:
Hello, I've noticed one or two people post on this before but nobody seems to have replied so raising the issue again... is this a known IE6 CSS bug? I have placed the following in my...
0
by: Red | last post by:
See http://reenie.org/test9.php There are two examples each with three nested divs. The only difference between the two is that the first example has no padding in the inner div, the second...
3
by: Becky Carter Hickman-Jones | last post by:
Hi, I have a simple script that opens an image in a new window which is sized to the image. The script is as follows: <a title="xxx"...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
36
by: phil-news-nospam | last post by:
Here is a simpler (no drop shadows) example of the padding bug I see: http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html So far I find nothing in the CSS2 document that says I should...
2
by: ShirishKumar | last post by:
hi to all, We are developing some website with asp.net having some css files . We want the browser to work and design to be constant in both in IE ( Internet Explorer & FireFox) . Its working...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.