ie padding problem

This is a discussion on "ie padding problem" within the Web Page Design section. This forum, and the thread "ie padding problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 29th, 2006, 15:30
New Member
Join Date: Dec 2006
Location: whitehaven
Age: 26
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ie padding problem

hello. i have a div with some text in it but ie is adding padding where it shouldnt be: here is my css for main stuff

*{margin:0; padding:0}
html{
height:100%;
margin:0px;
padding:0px;
}
body {
background-color: #000;
text-align: center;
margin:0px;
padding:0px;
height:100%;
}

#container {
position: relative;
background: #9cf;
margin:0 auto;
padding: 0px;
width: 650px;
min-height:100%;
height:auto;
border:1px solid;
}
/* hide from Mac IE5 \*/
* html #container {
height: 1%;
}
/* END hide from Mac IE5 */


#tudormenu{
width:600px;
background-image: url(tudortitle.gif);
background-repeat: no-repeat;
background-position:top center;
height:200px;
margin: 0 auto;
margin-top:40px;
}
#contenttudor{
background:url(scroll.jpg) no-repeat;
width:600px;
height:800px;
margin: 0 auto;
margin-top:20px;
margin-bottom:20px;
}
#tudortext{
position:relative;
width:520px;
padding:0;
display:inline;
float:left;
margin-left:70px;
margin-top:60px;
border:1px solid red;
}

an example with borders is shown
here http://www.oxtongue.co.uk/ihate/robin/tudor.html

HELP! lol cheers

Adrian
Reply With Quote

  #2 (permalink)  
Old Dec 29th, 2006, 16:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: ie padding problem

Before looking too deep into anything else, get rid of this line from the top of your code.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
It is not required by the rules and it throws IE into quirks mode. It has been known to effect even otherwise well behaved browsers.
Reply With Quote
Reply

Tags
css ie padding

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting the left/right/top/bottom padding of a table to different values tonyb Web Page Design 2 May 2nd, 2008 20:30
Padding In IE Monie Web Page Design 7 Feb 12th, 2008 03:36
padding content Salbert Web Page Design 5 May 3rd, 2007 18:43
IE 7 problem - double padding? edd_jedi Web Page Design 2 Nov 21st, 2006 15:31
Padding property problem in nested <div>s mattlowe81 Web Page Design 2 Apr 8th, 2006 16:00


All times are GMT. The time now is 13:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43