/    Sign up×
Community /Pin to ProfileBookmark

Fix for Firefox/IE7

[url]http://www.aylesford.kent.sch.uk/[/url]

I’ve just finished converting from tables to a pure CSS layout (XHTML). I’ve just got a few tweeking problems getting it to display correctly in Firefox/IE7.

Can anyone help?

Thanks very much/…

CSS:

[CODE]html, body {
background-color: #eaf1fa;
color: #000000;
font-family: verdana, tahoma, arial, sans-serif;
font-size: .82em;
margin: 0px;
text-align: center;
}

table {
border-collapse: collapse;
border-spacing: 0px;
table-layout: fixed;
}

td {
padding: 5px;
}

ul {
margin: 10px 0px 10px 37px;
}

h1 {
color: #1b4685;
font-family: “trebuchet ms”, verdana, arial, tahoma, sans-serif;
font-size: 2.2em;
margin: 0px;
padding: 5px 10px 0px 0px;
text-align: right;
}

h2 {
font-family: “trebuchet ms”, verdana, tahoma, sans-serif;
font-size: 2em;
}

h3 {
color: #4b92d9;
font-family: “trebuchet ms”, verdana, arial, tahoma, sans-serif;
font-size: 2.1em;
margin: 0px;
padding: 10px 0px 10px 0px;
text-align: center;
}

h4 {
display: inline;
font-size: 1em;
font-weight: bold;
margin: 0px;
}

img {
border: 0px;
}

a {
color: #000000;
text-decoration: none;
}

a:hover {
color: #81a9e2;
text-decoration: underline;
}

#wrapper {
background-color: #ffffff;
text-align: left;
width: 1003px;
}

#commonHeader {
background-image: url(/images/header-gradient.gif);
height: 65px;
border-bottom: 1px solid #81a9e2;
width: 100%;
}

#commonHeader img {
vertical-align: middle;
}

#commonFooter {
background-image: url(/images/footer-gradient.gif);
clear: both;
border-top: 1px solid #81a9e2;
height: 1px;
padding: 5px 0px 5px 0px;
}

#commonMenu {
background-image: url(/images/menu-gradient.gif);
float: left;
border: 1px solid #81a9e2;
margin: 4px 0px 4px 2px;
padding: 0px;
width: 157px;
}

#commonMenu ul {
list-style: none;
margin: 0px;
}

#commonMenu .menuHeader {
font-weight: bold;
padding: 5px 5px 5px 5px;
}

#commonMenu .menuItem {
padding: 0px 5px 2px 10px;
}

#commonMenu .line {
border-top: 1px solid #81a9e2;
height: 1px;
margin: 6px 0px -10px 0px;
}

#content {
float: left;
margin: 4px 0px 4px 4px;
width: 832px;
}

#content img {
text-align: center;
}

#content .line {
border-top: 1px solid #81a9e2;
}

#quickLinx img {
padding: 0px 5px 0px 5px;
vertical-align: middle;
}

#quickLinx a {
color: #0033cc;
text-decoration: none;
}

#quickLinx a:hover {
color: #0033cc;
text-decoration: underline;
}

#pageInfo {
height: 1px;
padding: 5px 4px 8px 0px;
}

#pageInfo p {
display: inline;
}

.contentHeader {
background-image: url(/images/content-gradient.gif);
height: 1px;
border-top: 1px solid #81a9e2;
border-right: 1px solid #81a9e2;
border-left: 1px solid #81a9e2;
padding: 5px;
font-weight: bold;
}

.contentHeader img {
vertical-align: middle;
}

.contentFooter {
background-image: url(/images/content-gradient.gif);
border-right: 1px solid #81a9e2;
border-bottom: 1px solid #81a9e2;
border-left: 1px solid #81a9e2;
height: 1px;
font-weight: bold;
padding: 5px;
}

.contentFooter img {
vertical-align: middle;
}

.contentMain {
border: 1px solid #81a9e2;
padding: 6px;
height: 1px;
text-align: justify;
}

.contentMain .line {
margin-top: -14px;
margin-bottom: -14px;
}

#badge {
vertical-align: middle;
}

.floatLeft {
float: left;
}

img.floatLeft {
margin-right: 5px;
}

.floatRight {
float: right;
}

img.floatRight {
margin-left: 5px;
}

.break {
padding: 4px 0px 0px 0px;
}

#homePageContent {
float: left;
width: 677px;
}

#homePageContent div {
border: 1px solid #81a9e2;
margin: 4px 4px 4px 4px;
}

#homePageContent p {
margin: 0px;
}

#latestNews {
padding: 10px 0px 0px 10px;
}

#latestNews ul {
list-style: square;
}

#latestNews li {
padding: 2px 0px 2px 0px;
}

#posRight {
float: right;
margin: 4px 2px 4px 0px;
width: 159px;
}

#posRight div {
margin: 0px 0px 4px 0px;
border: 1px solid #81a9e2;
text-align: center;
}

.edgeBorder {
border: 1px solid #81a9e2;
}

.fullBorder td {
border: 1px solid #81a9e2;
}

.center {
text-align: center;
}

.warning {
color: #ff0000;
}

#imageViewerContent {
background-color: #ffffff;
margin: 4px 4px 4px 4px;
}

#imageViewerContent .contentMain {
padding: 0px;
}[/CODE]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJun 21.2006 — The major one seems to be that you haven't removed the default browser margin and padding from the <li>'s in the list at the side.

If you have any other problems that need fixing, I suggest you list them.
Copy linkTweet thisAlerts:
@FangJun 21.2006 — #commonMenu ul {
list-style: none;
margin: 0px;
padding-top:5px !important;
padding:0;
}
×

Success!

Help @ldoodle 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.20,
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,
)...