Strange Padding/Margin

This is a discussion on "Strange Padding/Margin" within the Web Page Design section. This forum, and the thread "Strange Padding/Margin are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 24th, 2007, 09:49
New Member
Join Date: Jul 2007
Location: UK
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Strange Padding/Margin

Hey all,

I've got a strange problem between FF and IE.

http://www.henryfelton.co.uk/css/margin.html

FF looks fine but IE has a weird margin/padding on the left of the <ul>?

Thanks for any help.

H
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 24th, 2007, 09:57
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Strange Padding/Margin

Use a correct Doctype, and validate your code.

Your incorrect Doctype is triggering quirks mode. This is probably the cause of the error.

Always fix your validation errors before asking for help. The problem will often disappear once your code is valid; in any case, invalid code is hopelessly difficult to debug.

If you have trouble fixing the validation errors, just ask! It's not nearly as difficult as it seems, and there are plenty of people here to help

Last edited by MikeHopley; Jul 24th, 2007 at 10:03.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 24th, 2007, 10:36
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Strange Padding/Margin

You're not quite going about this the right way. You should set up a div called #sidebar and style it. Then put your navigation inside that.

I'd also suggest you take a look at a standard two column layout such as this one. It will show you how to set up the html without using all the styling inside the code. The floats and margins need to be placed inside the css!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, margin, 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
Strange margin display in firefox only hhelen Web Page Design 1 Apr 28th, 2008 15:36
[SOLVED] margin and padding in different browsers danny322 Web Page Design 12 Jan 30th, 2008 13:12
[SOLVED] Padding and Margin mcdanielnc89 Web Page Design 5 Dec 24th, 2007 23:58
Padding and margin for template does not work anymore LGS Web Page Design 10 Nov 30th, 2007 19:37
Align prob (padding? margin?) m1k3 Web Page Design 5 Jun 13th, 2006 16:02


All times are GMT. The time now is 21:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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