Welcome Guest!
Please login
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.
![]() ![]() |
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 |
-------------------- |
|
|
Apr 8 2008, 08:32 AM
Post
#2
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,799 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 - REDESIGNED! I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
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 -------------------- |
|
|
Apr 8 2008, 08:55 AM
Post
#4
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,799 Joined: 13-February 08 From: Squeezin' Member No.: 2 |
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 -------------------- The Squeeze Store is now OPEN! Come on in and grab something!
a web design portfolio | web non-sense - REDESIGNED! I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
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 -------------------- |
|
|
Apr 8 2008, 09:05 AM
Post
#6
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,799 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 - REDESIGNED! I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
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
-------------------- |
|
|
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 |
|
|
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. -------------------- |
|
|
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 =\
-------------------- |
|
|
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 |
|
|
Apr 8 2008, 11:01 AM
Post
#12
|
|
![]() Don deluzione ![]() ![]() ![]() ![]() ![]() ![]() Group: Team Leaders Posts: 1,007 Joined: 13-February 08 From: Canada eh? Member No.: 7 |
i woke up and figure it out. thanks everyone, sorry for the pointless thread =\ Are yuo sharing with us what the problem was? -------------------- |
|
|
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.
-------------------- |
|
|
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 -------------------- |
|
|
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!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | Daniela | 372 | 15th February 2008 - 06:58 AM Last post by: craig |
|||
![]() |
14 | edd | 398 | 15th May 2008 - 01:59 AM Last post by: Antti |
|||
![]() |
0 | mv08jml | 203 | 19th June 2008 - 12:12 PM Last post by: mv08jml |
|||
![]() |
2 | cosmicbdog | 141 | 4th July 2008 - 06:08 AM Last post by: cosmicbdog |
|||
![]() |
9 | cosmicbdog | 551 | 1st October 2008 - 10:47 PM Last post by: cosmicbdog |
|||






Apr 8 2008, 08:30 AM











