2 replies [Last post]
Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

The following shows up the way I would expect it to in IE, but in netscape I see nothing, nothing at all. Does anyone know how, definitively, to put an end to this madness? (okay, that was dramatic)

<style>
  #test {
    background-color:blue;
    width:400px;
    height:300px;
  }
</style>

<a href='#' id=test name=test></a>

d3signmonk3y
d3signmonk3y's picture
Offline
Enthusiast
Toledo, Ohio
Last seen: 19 years 35 weeks ago
Toledo, Ohio
Timezone: GMT-4
Joined: 2003-07-29
Posts: 59
Points: 0

I guess I just don't understand netscape

I don't think netscape will display an inline tag like that without content. Try adding a non-breaking space (&nbsp;) or changing it to a class and trying it on a div as well. Also make sure you put quotes around all your attribute values

<a href="#" id="test" name="test">&nbsp;</a>

Duke Machesne
Duke Machesne's picture
Offline
newbie
Miami, FL
Last seen: 19 years 40 weeks ago
Miami, FL
Timezone: GMT-4
Joined: 2003-06-19
Posts: 7
Points: 0

WOO-HOO!

I figured it out!

You're right, netscape ignores the size tags for all except block elements... soooo, in order to make the above code display correctly in both netscape and ie...

display:block;