Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2011, 03:21 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default Tags Misbehaving

Hi all,

I've made some images as separate backgrounds for links. These backgrounds sit in a span tag, and the links sit in their anchor tags with in each separate corresponding span tag, however when viewing the page the anchor tags appear to be outside of the span tags . . . . why?

Code:
<div id="nav">
   <span style="background:url('button1bg.png') no-repeat 0 0;">
      <a href="mylink.php">My Link</a>
   </span>
   <span style="background:url('button2bg.png') no-repeat 0 0;">
      <a href="mylink2.php">My Link</a>
   </span>
</div>
Thats not exactly it but basically what I'm trying to describe.

Cheers
__________________
Apocolypse2005, I'm a programmer - of sorts.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Names within tags ? tjclifford XSLT 3 June 10th, 2008 08:33 AM
Code help - Form misbehaving jeremy1048 Access 1 May 13th, 2008 06:26 AM
Missing +/or Misbehaving Calendar Control Caratman Excel VBA 0 March 5th, 2006 12:57 PM
Database Misbehaving SerranoG Access 2 February 15th, 2005 08:59 AM
InputBox Misbehaving bph Access 10 March 4th, 2004 01:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.