/    Sign up×
Community /Pin to ProfileBookmark

The following eliminates the margin around a div displaying properly in IE but not Firefox, page: [url]http://www.alexandriabrown.com/products.php[/url]

<div style=”float:right; padding:10px 0 10px 10px; margin:0;”><a href=”http://www.alexandriabrown.com/7secrets.htm”><img src=”images/AB_ManifestingSecrets_prodSpread.jpg” alt=”Manifesting Secrets” width=”187″ height=”175″ border=”0″ /></a></div>

Can anyone offer an explanation?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FourCourtJesterSep 25.2008 — what exactly is wrong with this page?
Copy linkTweet thisAlerts:
@pabloolivaauthorSep 25.2008 — Sorry, I should have explained that more clearly. After the heading "The 7 Mindset & Manifesting Secrets of Multimillionaire Entrepreneurs", in Firefox a line break appears between the heading and the preceding body, while in IE it displays as intended where there is no line break.
Copy linkTweet thisAlerts:
@FourCourtJesterSep 25.2008 — Just taking a quick look, you've structured your first <p> tag differently than the following 2 <p> tags.

To mimic your second paragraph, try styling your first one after it.

Your first <p> is : "The 7 Mindset & Manifesting Secrets of Multimillionaire Entrepreneurs". The <p> tag is probably giving the extra line break. If you encapsulate the rest of that paragraph, and the image, just like you did in your 2nd <p> tag, it will probably resolve itself.
×

Success!

Help @pablooliva 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...