Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browser issues with span?

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I have done a bit of searching but I thought you guys might be a better option.
I am using spanned rollovers which work ok in IE6 but I am unable to test it on any other browsers at my present location.

Are there any browser issues I should be aware of using <span>?

Keith
 
Unless you're giving it width and not changing it to a block level element (which would render using spans over divs useless), there are no limitations. Every modern browser fully supports span element for what it is -- a non semantic inline element.
 
I am using a table within the span tags which is revealed when the mouse is over a picture, it works but occasionally the picture does not display. The validator complains about the table being within a span element. Is that what you meant about making it a block element?

I have a picture which is displayed in the centre of the screen. When the mouse is over the picture, a table is displayed with information about the picture.
Is there a better way of doing this other than spans?

Keith
 
If you'll be putting a table in it, then it is better to use div instead of span. However, if this will be inside an anchor element, you cannot use a div. Besides, is it necessary to display information in a table?
 
Code:
is it necessary to display information in a table

Visitors to the site look through many items of artwork and on a full page image, when the mouse is placed over the picture, I want to display some detais about the picture, Lot number, date and time of sale, public bids, title, artist, comments etc. Whether tables are necessary I hope not but cannot find a way round it. The info needs to appear in two columns the left is right aligned and the right is left aligned. I can do that arrangement with tables but I would like to do it using CSS if at all possible.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top