Browser Problems

He has: 1,380 posts

Joined: Feb 2002

Hey, I've got some browser problems!

Problem number 1:
-Cell background colors in browses other than IE...how do you do it (CSS)? I use "background-color" attribute, but for some reason, it won't display!

Problem number 2:
-Javascript/DHTML menus...they look different in each browser, how can i fix that (sliding from the left)

Problem number 3:
-Image borders. I have set img {border: 0 none;}, but mozilla and netscape still show the borders. I also tried border: 0; , still didn't work. How do you get cross-browser no-border-ing?

Thanks alot!

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

If you want just some of the cells to be colored do this:
td.colored {color : #000000; background-color : #FF0000;}

On every cell that you want to apply a colored background add class="colored" to the td tag in your html -- like this:
red background and black text

For no image border: img {border : 0px;}

Not sure what you mean about Javascript/DHTML menus sliding to the left.

Hope that helped. Smiling

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Without an URI/URL, no can help you. border:0; IS cross-browser except for Netscape 4.x. My guess is you have other errors.

He has: 1,380 posts

Joined: Feb 2002

I knew how to do the style sheet and classes, it just wasn't working the way I wanted it to.

The url is swimtigerfish.com/LBA/index.html
with the style-sheet at swimtigerfihs.com/LBA/style.css
that page has both the bg-color as well as the img border.

And about the menu, that is on swimtigerfish.com

with the menu at swimtigerfish.com/menu.js

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

layers are not valid tags.

try validating first -- you have errors in your CSS that standards compliant browsers catch that IE doesn't.

He has: 1,380 posts

Joined: Feb 2002

ok

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.