Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-24-2009, 06:27 PM   PM User | #1
Abakiz
New Coder

 
Join Date: Aug 2008
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Abakiz is an unknown quantity at this point
Exclamation White space under IE Div, not FF

I have a simple error with a white space under a DIV to another DIV in IE, the code is as follows;

body{
font-family:Arial, Helvetica, sans-serif;
text-align:center;
margin: 0px auto;
padding: 0px auto;
}

#login_image{
margin:150 0 0 0;
padding:0;
border: 0px auto;
height: auto;
}

#login{
margin: 0px auto;
padding: 0px auto;
border: 0px auto;
}


If you could help it would be a big thanks, been looking around the internet for awhile now!
Abakiz is offline   Reply With Quote
Old 02-24-2009, 06:38 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Abakiz,
A lot of your CSS is wrong there. Take a look at the link about validating CSS in my sig below.


margin: 0 auto; centers things by making the left/right margins auto. Typically, body is the full width of the browser window so there is nothing to center. In other words, that line does not belong in the styling for the body tag.

padding: 0 auto; No such thing as auto padding.
same for border.

Your #login has margin:150 0 0 0; 150 is a measurement but you have to specify what units your measuring in. The browser sees that and says, "150 what?" Use px, em, % ...



Oh yes, for your whitespace ... you will need to post your html as well. Seeing only the CSS is not enough.
A link to the test site would be best but you can post your code here if there is no test site.
USE the [code] TAGS PLEASE! It puts your code in a scrolling box that greatly helps the readability of your post.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

Last edited by Excavator; 02-24-2009 at 06:41 PM..
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:46 AM.


Advertisement
Log in to turn off these ads.