/    Sign up×
Community /Pin to ProfileBookmark

Image indent in IE :s

hi! ?

why isn’t my image ‘mainnote’ aligned to the left in IE?? FF is ok.
How to fix…

[URL=http://test.bobbysmiles.com/test52.htm]http://test.bobbysmiles.com/test52.htm[/URL]

thx!

to post a comment
CSS

11 Comments(s)

Copy linkTweet thisAlerts:
@_lt_Eddie_gt_Apr 02.2005 — Check for text-indent and also zero your paddings first.
Copy linkTweet thisAlerts:
@Bobby_SauthorApr 02.2005 — hmm; both paddings and margins are zero ...
Copy linkTweet thisAlerts:
@_lt_Eddie_gt_Apr 02.2005 — hmm; both paddings and margins are zero ...[/QUOTE]
Wrap the image in <p> tags. That will do it. It's inheriting padding, margin or indent from somewhere. Good ol' IE.
Copy linkTweet thisAlerts:
@Bobby_SauthorApr 02.2005 — Great!

thanks for your help Eddie!
Copy linkTweet thisAlerts:
@FangApr 02.2005 — You need to wrap the page in an extra <div style="text-align:center;"> to center the page in pre version IE6 browsers.
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Basic center page&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
&lt;style type="text/css"&gt;
&lt;!--
html, body {margin:0;background:#9cf;text-align:center;}
#container {margin:0 auto; width:80%; text-align:left;}
#contents {background:#fff;border:1px solid red;}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="contents"&gt;
&lt;p&gt;contents&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@Bobby_SauthorApr 02.2005 — Nice! Thanks for your advice, Fang! I had no clue. I just test in the latest versions of IE and FF.

Does it look ok now? :

http://test.bobbysmiles.com/test52.htm

cheers
Copy linkTweet thisAlerts:
@_lt_Eddie_gt_Apr 02.2005 — The content is left aligned in IE5.5 SP2.
Copy linkTweet thisAlerts:
@Bobby_SauthorApr 02.2005 — The content is left aligned in IE5.5 SP2.[/QUOTE]
So that's ok, right? :rolleyes:
Copy linkTweet thisAlerts:
@_lt_Eddie_gt_Apr 02.2005 — So that's ok, right? :rolleyes:[/QUOTE]
Chill out Bobby, you did ask ?
Copy linkTweet thisAlerts:
@FangApr 03.2005 — The #container width needs to be set to 768px, the same as #header.

Download one or more of the [URL=http://browsers.evolt.org/?ie/32bit/standalone]IE standalone[/URL]s, just unzip do not install, to check your site in older browsers.
Copy linkTweet thisAlerts:
@Bobby_SauthorApr 04.2005 — Ok, thanks for the tip, Fang! I'll try them also in the future.
×

Success!

Help @Bobby_S spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...