CSS Question

Status
Not open for further replies.

Statik

Ars Scholae Palatinae
1,451
Hi all,

I'm trying to do this site using CSS only, not tables. More of an exercise than anything. It renders properly in NS6, Opera6, and Mozilla 0.9.6. It looks awful in NS4.7 (no surprise).

In IE6, the DIV is stretched down (vertically), and as far as I can tell, it's because of the relative positioning. Can anyone tell me of a way to prevent this stretching?

Statik
 

Statik

Ars Scholae Palatinae
1,451
Well, if you click on 'Member Brokers' from the main page (here), you come to the next page. On IE6, the OBJECT loads just under the menubar, and shows function= and sub=. These are just test variables. (Anyway to get rid of that border?) However, clicking on 'member services' does nothing.

If you look at the site using NS6, the OBJECT isn't there, but clicking on 'member services' does drop down the menu.

Statik
 

Ruinous

Ars Tribunus Angusticlavius
6,596
I'm curious why you would use a non-conforming DHTML collection (document.all) to reference elements in IE, when even IE4 supports document.getElementById, and NS4 doesn't support anything except document.layers. This is immaterial to the problem at hand, but it intrigues me. :)

As for z-index, anything with a CSS position of relative or absolute can be assigned a z-index.

Also, IMO, a better choice for hiding elements is the CSS property display. I discovered this awhile back, but my brain is not bringing back the reason at this time. Anyway, display:none and display:block (or display:inline) work better than visibility. Bah, I can't remember. If I dig the reason up, I'll let you know.

OYBB
 

Statik

Ars Scholae Palatinae
1,451
The reasons for the non-standard coding are two-fold:

1. I'm learning CSS and DHTML as I go along.

2. The text I have is 1998 and does it that way, and the online-tutorials do it that way.

If you or anyone else can give me suggestions on how to best accomplish this using CSS, I'd be much obliged. I'd like to avoid frames, and I'd like to be able to dynamically update the content of the <object> or whatever replaces it, with a .php file.

Statik
 
Status
Not open for further replies.