Skip to content

I finally understand the IE hatred in web pages.

Im trying desperately to get an image to float correctly. Works on IE6 and 8. Works flawlessly in Chrome and Firefox too. Ive tried all the 'hacks' and nothing is working. Im just hanging up my hat now and giving up on slaying this horrible monster.

3 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
dncib

Author

7
posts
39
comments
3
media
View profile

3 comments

Never forget the doctype! I once shat bricks trying a design to work on explorer, simply because I forgot to add doctype to the beginning. After that it worked like a charm.

2 points
<!--[if lt IE 8]><link href="defaultIE7.css" rel="stylesheet" type="text/css">
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->

plus reset.css will take care of most of your problems.

if it doesn't, it probably means that you misunderstand the box model and how floats/margins/padding/positioning work.

but without example code, no idea.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.