/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] FF seems to add line break before <p>

Hi !

I cant figure out why the <P> tag is not positioned inside the <div> in FireFox 3 , but stangly, displayed as I want in IE7. It looks like a line break is inserted befoire the <p> ?

I’d ivestigate with FireBug and can’t figure it out !!

test url: [URL=”http://lepreben.com/index.php?page=menu”]http://lepreben.com/index.php?page=menu[/URL]

[CODE]
<div class=”test3″>
<p>Contactez<span>nous</span></p>
</div>[/CODE]

[CODE]
.test3{
float : left;
font-family: Arial, Helvetica, sans-serif;
top: -100%;
margin: 0 auto;
background-color:#0033CC;
height:50px;
}
.test3 p{
color : #003366;
font-size: 33px;
}
.test3 p span{
color : #AAAAAA;
font-size: 33px;
}[/CODE]

Thanks

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@scragarSep 05.2008 — have you tried:
p{padding: 0;}
? It's either padding or margins, but you set margins...
Copy linkTweet thisAlerts:
@ray326Sep 05.2008 — Add margin:0 to #test3 p {}.
Copy linkTweet thisAlerts:
@drhowarddrfineSep 05.2008 — As always, IE is the problem. It is mishandling the floated div and you are using IE as your reference for how thing should work. Never, ever use IE as a reference for anything. Firefox is performing correctly.
Copy linkTweet thisAlerts:
@fitzybizzleauthorSep 05.2008 — Add margin:0 to #test3 p {}.[/QUOTE]
Thanks a lot ! It works great !?

As always, IE is the problem. It is mishandling the floated div and you are using IE as your reference for how thing should work. Never, ever use IE as a reference for anything. Firefox is performing correctly.[/QUOTE]
this is why i've said: 'but stangly, displayed as I want in IE7' ?
×

Success!

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

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

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