Greetings,
I have run into something that has got me perplexed, and given my relatively short development time with CSS, it comes as no surprise really.
Anyway, I am trying to develope a CSS button template for my website. The problem I have run into is the dreaded cross-browser compliance issue, with the button working in Internet Explorer but not the other, stricter browsers such as Netscape, Opera or Mozilla.
This would generally indicate to me that I've been lax in my W3C compliance but lack of experience is not making it obvious to me. Could somebody give me some pointers in the right direction please.
The CSS styles for the button in question are:
.largeButton a
{font-family: tahoma;
font-size: 10pt;
color: #FFFFFF;
font-weight: bold;
background: url('../Images/large_button_out.jpg');
width: 200px;
height: 20px;
text-decoration: none;
text-align: center;
line-height: 17px;}
.largeButton a:hover
{font-family: tahoma;
font-size: 10pt;
color: #FFFF00;
font-weight: bold;
background: url('../Images/large_button_over.jpg');
width: 200px;
height: 20px;
text-decoration: none;
text-align: center;
line-height: 17px;}
The call for the following images is as follows:
<div class="largeButton">
<a href="../Public/post_activity.html">Post Activity</a><br>
<a href="../Public/web_jobs.html">Outstanding Tasks</a>
</div>
The following images are the result of this:
Internet Explorer: Netscape/Mozilla/Opera:
The only problem is that the latter browsers ignore the DIV height and width properties (but the HOVER functionality works).
Any help greatly appreciated.
Cheers,
OzWolf
I have run into something that has got me perplexed, and given my relatively short development time with CSS, it comes as no surprise really.
Anyway, I am trying to develope a CSS button template for my website. The problem I have run into is the dreaded cross-browser compliance issue, with the button working in Internet Explorer but not the other, stricter browsers such as Netscape, Opera or Mozilla.
This would generally indicate to me that I've been lax in my W3C compliance but lack of experience is not making it obvious to me. Could somebody give me some pointers in the right direction please.
The CSS styles for the button in question are:
.largeButton a
{font-family: tahoma;
font-size: 10pt;
color: #FFFFFF;
font-weight: bold;
background: url('../Images/large_button_out.jpg');
width: 200px;
height: 20px;
text-decoration: none;
text-align: center;
line-height: 17px;}
.largeButton a:hover
{font-family: tahoma;
font-size: 10pt;
color: #FFFF00;
font-weight: bold;
background: url('../Images/large_button_over.jpg');
width: 200px;
height: 20px;
text-decoration: none;
text-align: center;
line-height: 17px;}
The call for the following images is as follows:
<div class="largeButton">
<a href="../Public/post_activity.html">Post Activity</a><br>
<a href="../Public/web_jobs.html">Outstanding Tasks</a>
</div>
The following images are the result of this:
Internet Explorer: Netscape/Mozilla/Opera:
The only problem is that the latter browsers ignore the DIV height and width properties (but the HOVER functionality works).
Any help greatly appreciated.
Cheers,
OzWolf