Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> So Simple, Yet Wtf

This is a discussion on So Simple, Yet Wtf, within the HTML/XHTML section. This forum and the thread "So Simple, Yet Wtf" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> So Simple, Yet Wtf
shanedizzle
post Apr 8 2008, 08:30 AM
Post #1


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



why is this different in firefox and ie6?!!?

http://shanedizzle.com/test.html


--------------------
Go to the top of the page
 
+Quote Post
karinne
post Apr 8 2008, 08:32 AM
Post #2


Co-Founder
******

Group: Co-Founders
Posts: 2,316
Joined: 13-February 08
From: Squeezin'
Member No.: 2



So simple yet it doesn't validate.

You can't put the <style> element anywhere but in the <head> of your document. Start with that.


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 08:40 AM
Post #3


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



oh jeez, my bad, i thought i have it in the head, thats why i had no idea why it did not work lol. scared the crap out of me.

lol sorry

This post has been edited by shanedizzle: Apr 8 2008, 08:41 AM


--------------------
Go to the top of the page
 
+Quote Post
karinne
post Apr 8 2008, 08:55 AM
Post #4


Co-Founder
******

Group: Co-Founders
Posts: 2,316
Joined: 13-February 08
From: Squeezin'
Member No.: 2



laugh.gif no problem.

1 thing I noticed is that you have

CODE
* {
    margin: 0;
    padding: 0;
}


Do you know what that does? If you did, you wouldn't be putting padding: 0 or margin: 0 everywhere in your css wink.gif


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 09:04 AM
Post #5


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



yeah i never used that so i just put margin and padding everywhere by habit :\

i validated it and it still is different in ie6? or am i missing something again lol.

all nighter... i could be having massive brain farts


--------------------
Go to the top of the page
 
+Quote Post
karinne
post Apr 8 2008, 09:05 AM
Post #6


Co-Founder
******

Group: Co-Founders
Posts: 2,316
Joined: 13-February 08
From: Squeezin'
Member No.: 2



You're also missing

CODE
<html xmlns="http://www.w3.org/1999/xhtml">


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 09:09 AM
Post #7


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



oh i added that after you said to validate it. still diff lol


--------------------
Go to the top of the page
 
+Quote Post
JustinStudios
post Apr 8 2008, 09:43 AM
Post #8


Rapid Squeezer
****

Group: Members
Posts: 156
Joined: 15-February 08
From: US of A
Member No.: 150



If you want the whole document's padding to be 0 you need to place that in your body tag one time...

If your trying to use CSS to center an element you need to add "auto" after your 0 in padding.


--------------------
Currently Available for work: - XTHML, CSS, Flash, Actionscript, PHP, ASP, Ajax -
interested in movies? Read some of my reviews on my blog
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 10:12 AM
Post #9


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



i know this.

my question is why in firefox does it do what i ask, then in ie6 the content is over an extra 10 pixels or so.


--------------------
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 10:28 AM
Post #10


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



i woke up and figure it out. thanks everyone, sorry for the pointless thread =\


--------------------
Go to the top of the page
 
+Quote Post
JustinStudios
post Apr 8 2008, 10:37 AM
Post #11


Rapid Squeezer
****

Group: Members
Posts: 156
Joined: 15-February 08
From: US of A
Member No.: 150



Your answer is "Firefox does things properly" IE6 is stupid...


--------------------
Currently Available for work: - XTHML, CSS, Flash, Actionscript, PHP, ASP, Ajax -
interested in movies? Read some of my reviews on my blog
Go to the top of the page
 
+Quote Post
Mark Poppen
post Apr 8 2008, 11:01 AM
Post #12


Don deluzione
*****

Group: Team Leaders
Posts: 740
Joined: 13-February 08
From: 10km from nowhere and just south of nothing
Member No.: 7



QUOTE (shanedizzle @ Apr 8 2008, 09:28 AM) *
i woke up and figure it out. thanks everyone, sorry for the pointless thread =\

Are yuo sharing with us what the problem was?


--------------------
My portfolio : Poppen.ca
My Blog : Mark.Poppen.ca
Go to the top of the page
 
+Quote Post
shanedizzle
post Apr 8 2008, 12:45 PM
Post #13


Fresh Squeezed
**

Group: Members
Posts: 14
Joined: 14-February 08
From: michigan - u.s
Member No.: 57



Oh, I forgot that ie can double the margin of a float adjacent to its container. So I set the margin to half of what I needed.


--------------------
Go to the top of the page
 
+Quote Post
joey
post Apr 11 2008, 03:31 PM
Post #14


Fresh Squeezed
**

Group: Members
Posts: 48
Joined: 14-February 08
From: Hillsboro, OR
Member No.: 37



I didn't see your example/test but just wanted to point this out.

you can also change the display: block to display: inline and avoid those crappy css hacks because for some reason ie floats those properly, It just has trouble with blocks.

Granted, this doesn't always work for the specific item, but you can usually make it work and without using hacks in your css.

Quick google search turned up this for a more detailed explanation: http://www.positioniseverything.net/explor...loatIndent.html


--------------------
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 Daniela 179 15th February 2008 - 06:58 AM
Last post by: craig
No new   14 edd 198 15th May 2008 - 01:59 AM
Last post by: Antti
No New Posts   0 mv08jml 66 19th June 2008 - 12:12 PM
Last post by: mv08jml
No New Posts   2 cosmicbdog 53 4th July 2008 - 06:08 AM
Last post by: cosmicbdog
No New Posts   8 cosmicbdog 110 4th September 2008 - 03:05 AM
Last post by: velo