[help]<div And Link Ids Stop Working

Heh, yet another PHP/HTML/CSS problem that's got me stumped. :P

Using CSS, I've got a :)

#217390

There's no incompatibilities of that sort that I know of... perhaps a snippet of the code you're using could help?

#217397

Never heard of such a problem but:

Dont put <? ?> any php in the css file directly!!!

The filename must be .php instead of .htm at the end if u use php...

Perhaps it was anything of these

#217401

OK, here's what I've got in the CSS file, that's relivant:

#mainimg { 
height: 70px;
background: url(images/header.gif) no-repeat top center;
}

#home-link {background-image:url(images/contact.gif); background-position: 0px 0px; display:block; width:55px; height:30px}
#home-link:hover {background-image:url(images/contact_over.gif); }
#home-link:active, #home-link:focus {background-image:url(images/contact.gif);}

and here's the relivant information from the .PHP file:

<div id="mainimg">
</div>

<a href="http://stylesuites.com" id="home-link"></a>

Also, here is the bit of PHP that is causing the trouble:

<?php
include("http://www.theconcessionstand.co.uk/forums/ssi.php?a=news&show=10");
?>

Hopefully this means something to someone :)

#217410

make sure you have linked correctly and tags correctly, or it will not parse it :)

#217460

Originally posted by pwnzrzpat@Sep 29 2004, 01:12 AM

make sure you have linked correctly and tags correctly, or it will not parse it :)

<{POST_SNAPBACK}>

Yup, just checked it. All correct :)

#217535

Originally posted by Simon@Sep 28 2004, 08:48 PM

<{POST_SNAPBACK}>

Try using class instead of id (e.g %7Boption%7D) - Maybe that will help...

#217559

Originally posted by dappleyard@Sep 29 2004, 01:27 PM

Try using class instead of id (e.g %7Boption%7D) - Maybe that will help...

<{POST_SNAPBACK}>

I replaced id with class in the

image code, however it just displays a broken image, unaligned. This is just getting more confusing. Anyone? >.<

#217587

Think I Fixed it - If not: Re-Call me on MSN

#217598

Yay, pichfl fixed it. Everyone say Thanks to pichfl! :D

#217602

How'd you fix it?

#217605

Mind posting the solution for those of us who were following this thread with great curiousity? :P

I consider it might rude when people ask an open question, then solve it in private, but don't post a solution <_<

#217606

Originally posted by Stevie BM@Sep 29 2004, 06:26 PM

I consider it might rude when people ask an open question, then solve it in private, but don't post a solution  <_<

<{POST_SNAPBACK}>

Heh, sorry Mr Stevie Sir; didn't think there was anyone actually following this thread apart from the kind people that helped me ;)

Replaced the current

<div id="home-link"><a href="http://stylesuites.com" id="home-link"><div id="blind"><!--No Content--></div></a></div>

and then added the following to the CSS;

#blind{  
height:30px;
width:55px;}

Thanks again pichfl :)

#217615

Sorry for not explaining - thanx simon.

If anybody has problems with CSS & xHTML: IM me ;)

#217620