Jump to content

[SOLVED] css style help needed


prakash

Recommended Posts

hi please have a look on following code with it's preview on IE

top padding is working on bottom example but not with the upper example

I don't know what's wrong with the top padding.

 

<style>
#myMenu {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 8pt;
color: #4b9400;
margin: 0px;
padding-left: 4px;
}

#myMenu a {
display: inline;
padding: 3px;
color: #adadad; 
text-decoration: none;
}

#myMenu a:hover {
color: #fffa6f; 
text-decoration: none;
background-color: #3a3a3a;
}
</style>

Not Working<br>
==========================================
<table width="969" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="26" id="myMenu">
	<a href="">Link 1</a>
	<a href="">Link 2</a>
	<a href="">Link 3</a>
	<a href="">Link 4</a>
	<a href="">Link 5</a>
	<a href="">Link 6</a>
</td>
</tr>
<tr>
<td height="1" bgcolor="#404040"></td>
</tr>
<tr>
<td height="20">some data</td>
</tr>
</table>

<br><br>
Working<br>
==========================================
<div id="myMenu">
<a href="">Link 1</a>
<a href="">Link 2</a>
<a href="">Link 3</a>
<a href="">Link 4</a>
<a href="">Link 5</a>
<a href="">Link 6</a>
</div>

 

 

Link to comment
https://forums.phpfreaks.com/topic/100949-solved-css-style-help-needed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.