/    Sign up×
Community /Pin to ProfileBookmark

Firefox problem

Hi, the following code looks fine in all browsers i have tested apart from firefox:

Or just go here to view it:
[url]http://test.abacus-ringtones.co.uk/2005/test.html[/url]

[CODE]

<html>
<head>
<base href=”http://test.abacus-ringtones.co.uk/2005/”>
<style>

body
{
background:url(media/bk.jpg);
font-family:Verdana, Georgia, Times;
font-size:11px;
}

#leftMenuHeader
{
background:url(media/menu_top.gif);
background-repeat: no-repeat;
height:23px;
width:233px;
}

#leftMenu1
{
font-size:12px;
font-weight:bold;
padding-left:5px;
padding-top:3px;
text-align:left;
width:233px;
height:22px;
background-color:#ffffff;
border-left:1px #000000 solid;
border-right:1px #000000 solid;
}
</style>
<head>

<body>

<div id=leftMenuHeader></div>
<div id=leftMenu1>
Link here
</div>
</body>

</html>

[CODE]

In firefox, the second div is stretched – removing the left padding stops it happening so much but still they don’t line up.

Anyone have any ideas?

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeJul 20.2005 — You should start with a DTD. That might not be the answer to your problem, but it is very important - it's like a precondition to making a page. Don't leave home without one : &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd "&gt;
Copy linkTweet thisAlerts:
@gizmoJul 20.2005 — Try specifying a DOCTYPE at the start. Firefox does not guess at what is required.
Copy linkTweet thisAlerts:
@axysauthorJul 20.2005 — OK now it it's wrong in IE too. At least its consitant now. Any ideas?
Copy linkTweet thisAlerts:
@gizmoJul 20.2005 — Try validating the code at http://www.htmlhelp.com/tools/validator/ then fix any errors thrown up.
×

Success!

Help @axys 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.16,
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,
)...