Jump to content

[SOLVED] Disappearing Links


MasterSaji

Recommended Posts

Hey all, hopefully this is in the right spot.  I'm having trouble with some code I'm hoping some fresh pair of eyes could help me fix.  Anyway, I'm having trouble with a link doing a disappearing act and I'm just stumped as to where it could be.  You'll see what I mean if you head over here.  There is supposed to be an image that links back up to the main site, but it's just not there.  Here's the code I have.

 

<table align="center" width="900" height="400" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
<tr>
	<td align="center" valign="middle">
		<table class="main" align="center" width="870" height="370" cellpadding="0" cellspacing="0">
			<tr>
				<td class="nav" align="right" valign="top" width="205" height="370">
				<div class="home"><a href="http://grimforge.com/index.php"></a></div>
				<div class="gallery-act"></div>
				<div class="about"><a href="http://grimforge.com/about.php"></a></div>
				<div class="contact"><a href="http://grimforge.com/contact.php"></a></div>
				</td>

 

and here's the CSS code I have for it.

 

/* MAIN.PHP */
table.main {
background-color: #FFFFFF;
background-image: url(images/main_bg.png);
background-repeat: no-repeat;
}

td.nav {
padding: 6px;
}

div.home-act {
width: 200px;
height: 50px;
float: left;
background-image:url(images/home_act.png);
background-repeat: no-repeat;
}

.home a {
float: left;
width: 200;
height: 50px;
background-image: url(images/home_non_act_hover.png);
background-repeat: no-repeat;
border: hidden;
}

.home a:hover {
background-position: 0px -50px;
}

div.gallery-act {
width: 200px;
height: 50px;
float: left;
background-image:url(images/gallery_act.png);
background-repeat: no-repeat;
}

.gallery a {
float: left;
width: 200;
height: 50px;
background-image: url(images/gallery_non_act_hover.png);
background-repeat: no-repeat;
border: hidden;
margin-top: 12px;
}

.gallery a:hover {
background-position: 0px -50px;
}

div.about-act {
width: 200px;
height: 50px;
float: left;
background-image:url(images/about_act.png);
background-repeat: no-repeat;
}

.about a {
float: left;
width: 200px;
height: 50px;
background-image: url(images/about_non_act_hover.png);
background-repeat: no-repeat;
border: hidden;
margin-top: 11px;
}

.about a:hover {
background-position: 0px -50px;
}

div.contact-act {
width: 200px;
height: 50px;
float: left;
background-image:url(images/contact_act.png);
background-repeat: no-repeat;
}

.contact a {
float: left;
width: 200px;
height: 50px;
background-image: url(images/contact_non_act_hover.png);
background-repeat: no-repeat;
border: hidden;
margin-top: 10px;
}

.contact a:hover {
background-position: 0px -50px;
}

 

Also, the above HTML code is placed within a PHP file (though that shouldn't have anything to do with it), but the thing is, if you went to the main site, it works just fine.  Anyway, thanks a head of time, and sorry if this is in the wrong section  :-\

 

~Saji

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.