PHP Issues....

Status
Not open for further replies.

Osiris

Golden Master
Messages
36,817
Location
Kentucky
The code below

<div class="button">
<a onmouseover="MM_swapImage('excerpt','','../images/btns/excerpt_f2.gif',1)" onmouseout="MM_swapImgRestore()" href="http://www.conservativeoutcomes.com/../excerpt.php">
<img id="excerpt" alt="Excerpt" src="http://www.waronscience.com/images/btns/excerpt_f2.gif" border="0" name="excerpt" oSrc="<A href="http://www.conservativeoutcomes.com/images/btns/excerpt.gif"></a></div">http://www.conservativeoutcomes.com/images/btns/excerpt.gif"></a></div
<a onmouseover="MM_swapImage('buy','','../images/btns/buy_f2.gif',1)" onmouseout="MM_swapImgRestore()" href="Buy">
<img id="buy" alt="Buy the Book" src="http://www.waronscience.com/../images/btns/buy_f2.gif" border="0" name="buy"></a></div>

What I need are the buttons to be aligned at the top center

When I have it like it is above, they show up like so:

*Excerpt
*Buy

I want it like this
*Exerpt *Buy


Does that make sense?
 
Well first off, that's HTML not PHP.

Second, that code is really messed up. You have one opening div and three closing div's. Then you have a closed a tag but no opening a tag.

Can you show me an example of the site this is going on? Or, show more functioning code so that I can get an idea? That would help.

At a glance, I'd say try this:

Code:
<div class="button">
<a onmouseover="MM_swapImage('excerpt','','../images/btns/excerpt_f2.gif',1)" onmouseout="MM_swapImgRestore()" href="http://www.conservativeoutcomes.com/../excerpt.php">
<img id="excerpt" alt="Excerpt" src="http://www.waronscience.com/images/btns/excerpt_f2.gif" border="0" name="excerpt" oSrc="<A href="http://www.conservativeoutcomes.com/images/btns/excerpt.gif"></a>

<a onmouseover="MM_swapImage('buy','','../images/btns/buy_f2.gif',1)" onmouseout="MM_swapImgRestore()" href="Buy">
<img id="buy" alt="Buy the Book" src="http://www.waronscience.com/../images/btns/buy_f2.gif" border="0" name="buy" oSrc="<A href="http://www.conservativeoutcomes.com/images/btns/buy.gif"></a>
</div>

But I doubt that will work.
 
Status
Not open for further replies.
Back
Top Bottom