/    Sign up×
Community /Pin to ProfileBookmark

CSS menu, ie and firefox display it differently.

Hiya, there is two parts of my site that appear different in internet explorer. On my left menu there is spaces between each link, they are also at the top and bottom of the menu which i dont want. Im having the same problem with a bit of javascript that i use so this leads me to believe that ive done something wrong or missed something out in the CSS.

Im not very good at explaining things so just incase you didnt understand me here is a picture of the problem:
[url]http://img113.imageshack.us/img113/2413/gaps6oz.jpg[/url]

Here is a link to the site: [url]http://enemyterritorys.the-ggn.com/2.php[/url]

And heres the code ?

[code=html]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “DTD/xhtml1-transitional.dtd”>

</div>

<html><head><title>Quake Wars Center – The Quake Wars Community.</title>

<style type=”text/css”>
body { text-align:center; margin: 0; background-color: #A19FA0; }

#frame { width:775px; margin-right:auto; margin-left:auto; margin-top:0px; padding:0px; text-align:left; }

#frame2 { width:831px; margin-right:auto; margin-left:auto; margin-top:0px; padding:0px; text-align:left; background: url(images/pagebackground.jpg); }

#contentleft { width:183px; padding-left:1px; float:left; text-align:left; }

#contentcenter { width:407px; padding:0px; float:left; }

#contentright { width:180px; padding:0px; float:left; }

#forumtext { padding:10px; background-image: url(‘images/forumimg.jpg’); background-repeat: no-repeat; background-position: 10px 0px; }

#pagetext { padding:10px; background-image: url(‘images/random/textbg/textbg.jpg’); background-repeat: no-repeat; background-position: 60px 20px; }

#men{ margin-left:-15px; }

#contentheader { margin:0px 0px 0px -1px }

#forumframe { background: url(images/forumbutbg.jpg); width:371px; margin-right:auto; margin-left:auto; margin-top:10px; padding:0px; text-align:left; }

#contentheader { }

#menu li{ list-style-type: none; border-top: 0px solid; border-bottom: 0px solid; margin: 0; padding: 0; }
#menu li a{ text-decoration: none; color: #0F5747; display: block; background: url(images/menu/up.jpg) #E6E4E5 no-repeat 0 0; width: 150px; height: 16px; padding-top; 0px; }
#menu span{ padding-left: 20px; padding-top: 0; }
#menu li a:hover{ color: #000000; background: url(images/menu/down.jpg) #E6E4E5 no-repeat 0 0; }

.style1 { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #0F5747; }
.style3 { font-weight: bold; color: #0F5747; font-family: Arial, Helvetica, sans-serif; }
.style9 { font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.style5 { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #0F5747; }

a:link { color: #13715B; }
a:visited { color: #13715B; }
a:hover { color: #0A382E; }
a:active { color: #13715B; }

.style10 {font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #0F5747; }
.style12 {color: #494949}
.style14 {color: #8B8B8B}
.style21 {color: #555555}
</style>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /></head><body>
<div id=”frame2″>
<div id=”frame”>
<div id=”contentheader”> <img src=”images/topleft.jpg” width=”380″ height=”76″ /><img src=”images/topright.jpg” width=”395″ height=”76″ /><img src=”images/random/title/mainimage.jpg” width=”775″ height=”221″ /><img src=”images/menuleft1.jpg” width=”89″ height=”41″ /><a href=”#”><img src=”images/mainbut2.jpg” width=”74″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/aboutbut3.jpg” width=”75″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/screensbut4.jpg” width=”76″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/faqbut5.jpg” width=”74″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/linksbut6.jpg” width=”76″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/submitbut7.jpg” width=”74″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/contactbut8.jpg” width=”77″ height=”41″ border=”0″ /></a><a href=”#”><img src=”images/forumsbut9.jpg” width=”73″ height=”41″ border=”0″ /></a><img src=”images/menuright10.jpg” width=”87″ height=”41″ /></div>
<div id=”contentleft”> <img src=”images/mainmenu.jpg” width=”183″ height=”33″ />
<div id=”men”>
<ul class=”style9″ id=”menu”>
<li><a href=”index.php”><span>Main</span></a></li>
<li><a href=”http://www.redgfxforums.com/”><span>About</span></a></li>
<li><a href=”graphics.php”><span>Game Info </span></a></li>
<li><a href=”contact.php”><span>System Requirements </span></a></li>
</ul>
</div>
<img src=”images/interactive.jpg” width=”183″ height=”26″ />
<div id=”men”>
<ul class=”style9″ id=”menu”>
<li><a href=”index.php”><span>Maps</span></a></li>
<li><a href=”http://www.redgfxforums.com/”><span>Mods</span></a></li>
<li><a href=”graphics.php”><span>Movies</span></a></li>
<li><a href=”photo.php”><span>Patches</span></a></li>
<li><a href=”downloads.php”><span>Submit</span></a></li>
</ul>
</div><img src=”images/downloads.jpg” width=”183″ height=”28″ /> <div id=”men”>
<ul class=”style9″ id=”menu”>
<li><a href=”index.php”><span>Forums</span></a></li>
<li><a href=”http://www.redgfxforums.com/”><span>Submit</span></a></li>
<li><a href=”affiliate.php”><span>Advertise</span></a></li>
</ul>
</div><img src=”images/advertisements.jpg” width=”183″ height=”25″ /><br/></div><div id=”contentcenter”>
<div id=”forumframe”>
<div><img src=”images/forumbuttop.jpg” width=”371″ height=”28″ /></div>
<div class=”style5″ id=”forumtext”><script language=”JavaScript” type=”text/javascript” src=”forums/topics_anywhere.php?mode=show&f=a&n=50&a=y&s=y&l=y&m=y&h=asmpl&so=d&b=dis&br=y&bl+y”></script>
</div>
<div><img src=”images/forumbutbot.jpg” width=”371″ height=”16″ /></div>
</div>
<div id=”pagetext”><div class=”style3″><strong>Gamespy Preview</strong></div>
<div align=”left” class=”style5″><a href=”http://enemyterritorys.the-ggn.com/forums/viewtopic.php?t=3″>Comments
<br />
</p>
<div align=”center” class=”style10″><span class=”style14″>—————————————————————————–</span><br />
<span class=”style12″>Website copyright &copy; 2005 – 2006 C Longridge –
All rights reserved. <br />
All trademarks are property of their respective owners.<br />
This site is part of the Global Gaming Network <a href=”http://www.the-ggn.com”>www.The-GGN.com</a></span></div>
</div>
</div>

<div id=”contentright”>
<img src=”images/potd.jpg” width=”183″ height=”36″ /><br/><div>
<div align=”center”><table width=”100%” border=”0″>
<tr>
<td><div align=”center”><a href=”http://enemyterritorys.the-ggn.com/forums/viewtopic.php?t=6″> <img src=”http://enemyterritorys.the-ggn.com/thumb.jpg” boarder=”0″><br />
<a href=”http://enemyterritorys.the-ggn.com/forums/viewtopic.php?t=6″></a></a></div></td>
</tr>
<tr>
<td><div align=”center”><font size=”2″><a href=”http://enemyterritorys.the-ggn.com/forums/viewtopic.php?t=6″>Comments (0) </a></font></div></td>
</tr>
</table></div>
</div><img src=”images/polltop.jpg” width=”183″ height=”34″ /><br/>
<div align=”center” class=”style5″><table width=”150″ border=”0″ cellspacing=”0″ cellpadding=”1″ bgcolor=”#359287″>
<tr align=”center”>
<td><style type=”text/css”>
<!–
.input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
.links { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #13715B}
–>
</style><font face=”Verdana, Arial, Helvetica, sans-serif” size=”-1″ color=”#FFFFFF”><b>Quake Wars Poll</b></font></td>
</tr>
<tr align=”left”>
<td>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”2″ align=”center” bgcolor=”#E7E5E6″>
<tr>
<td height=”40″ valign=”middle”><font face=”Verdana, Arial, Helvetica, sans-serif” color=”#13715B” size=”1″><b>Who will you play as first?</b></font></td>
</tr>
<tr align=”right” valign=”top”>
<td>
<form method=”post” action=”2.php”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”>
<tr valign=”top” align=”left”>
<td>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”1″ align=”center”>
<tr>
<td width=”15%”><input type=”radio” name=”option_id” value=”Stogg”></td>
<td width=”85%”><font face=”Verdana, Arial, Helvetica, sans-serif” size=”1″ color=”#13715B”>Stogg</font></td>
</tr>
<tr>
<td width=”15%”><input type=”radio” name=”option_id” value=”GDF”></td>
<td width=”85%”><font face=”Verdana, Arial, Helvetica, sans-serif” size=”1″ color=”#13715B”>GDF</font></td>
</tr>
</table><div align=”center”>
<input type=”hidden” name=”action” value=”vote”>
<input type=”hidden” name=”poll_ident” value=”4″>
<input type=”submit” value=”Vote” class=”input”>
<br>
<br>
<font face=”Verdana, Arial, Helvetica, sans-serif” color=”#13715B” size=”1″><a href=”2.php?action=results&amp;poll_ident=4″>View Results</a>
</font></div>
</td>
</tr>
</table>
</form>
<font face=”Verdana, Arial, Helvetica, sans-serif” size=”1″></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<img src=”images/pollbottom.jpg” /></div>
<br clear=”all” />
</div>
</div>
</body>
</html>
[/code]

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@The_Little_GuyFeb 17.2006 — You have 153 HTML errors, and it wouldn't let me Check CSS I get an error:

[B][COLOR=Red]Please, validate your XML document first!



Line 3



Column 2



The markup in the document preceding the root element must be well-formed. [/COLOR]
[/B]


Your problem probably is because of errors in your HTML, and/or CSS
Copy linkTweet thisAlerts:
@fab0990authorFeb 17.2006 — damn thats embarasing i have been validating it reguarly but ive been uploading the source code and not entering the webpage url. I only had 18 errors and i cant change them because all of them are part of the javescript. I guess that means all the other errors are coming from the scripts im using for content management which is a bugger.
Copy linkTweet thisAlerts:
@fab0990authorFeb 17.2006 — I just spent the last 4 hours working on it and i still cant figure out whats wrong, its starting to do my head in. I have it stuck in my head that its a matter of simply adding in ( or taking out ) a little code so ive been trying everything but to no avail....... i look forward to more replies.
Copy linkTweet thisAlerts:
@KravvitzFeb 17.2006 — & should be &amp;

[url=http://www.w3.org/TR/xhtml1/#h-4.6]You need to terminate the empty elements.[/url]

This is a bit old, but much of what it says is relevant -- [url=http://www.mcsr.olemiss.edu/~mudws/font.html]What's wrong with the FONT element?[/url]

[url=http://www.hotdesign.com/seybold/index.html]Why tables for layout is stupid[/url]

[url=http://davespicks.com/essays/notables.html]Why avoiding tables (for layout) is important[/url]

[url=http://www.workingwith.me.uk/tablefree/why/]Why go table free?[/url]

[url=http://www.sitepoint.com/article/tables-vs-css/]Tables Vs. CSS - A Fight to the Death[/url]

[url=http://www.phrogz.net/CSS/WhyTablesAreBadForLayout.html]Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS[/url]

[url=http://www.westciv.com/style_master/house/good_oil/dead_layout/]The layout is dead, long live the layout[/url]

[url=http://evolt.org/article/Tables_or_CSS_Choosing_a_layout/25/21429/]Tables or CSS: Choosing a layout[/url]
Copy linkTweet thisAlerts:
@fab0990authorFeb 18.2006 — Ive got rid of some of the <font> tags, however there are some that are embeded within the content management stuff that i cannot change. I also got rid of the empty elements but still its the same. I hope i dont need to recode the entire thing ?

still looking for help guys.....

Oh and Kravvitz i read "What's wrong with the FONT element?" and that info was very helpfull, ill remember that in the future thanks.
×

Success!

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