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.
|
|
|
|
|
![]() |
||
Strange Padding/Margin
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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! |
![]() |
| Tags |
| css, margin, padding |
| Thread Tools | |
|
|
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 |