GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CSS question for the designers (https://gfy.com/showthread.php?t=436665)

swedguy 02-24-2005 09:38 PM

CSS question for the designers
 
I've tried to find some info on it, but no luck.

Lets say I have this in a table tag:

<table class="tad" bgcolor="white" border="1">

This in a style sheet:

table.tad { background:black; border:1px solid black; }


If I look at it in IE and FireFox, the style sheet takes over. But is it the same on Mac browsers and other not so common browsers? Anyone know?

KorayIsSexy 02-24-2005 09:41 PM

It will show up the same. Pretty much all browsers can interperete CSS now. (save text based ones) The only time you would have an issue is with CSS3. And a few very random CSS2 properties.

You'll be fine.

tungsten 02-24-2005 09:42 PM

good question, no idea about macs, i would suppose yes

tyler86ed 02-24-2005 09:45 PM

Yes. I dev on pc/mac and they are the same as long as your syntax is correct.

swedguy 02-24-2005 09:45 PM

Quote:

Originally Posted by KorayIsSexy
It will show up the same. Pretty much all browsers can interperete CSS now. (save text based ones) The only time you would have an issue is with CSS3. And a few very random CSS2 properties.

You'll be fine.

But will it override the values I have set in the table (background and border)?

KorayIsSexy 02-24-2005 09:51 PM

Yes. It interprets the CSS the same way. As long as you use valid code, you're fine.

CSS is pretty much a web industry standard.

swedguy 02-24-2005 10:00 PM

Cool. Thanks :thumbsup

I just wanted to make sure that the style sheet overrides what ever I have set in the table since a style sheet will not always be present and then it can fall back on what's set in the table.

Shoehorn! 02-24-2005 10:05 PM

Quote:

Originally Posted by tungsten
good question, no idea about macs, i would suppose yes

I use Macs mostly and haven't had a problem displaying CSS. :2 cents:

swedguy 02-25-2005 11:01 AM

Sweet. I found an even better way. The !important declaration. It takes presedence over a normal declaration.

http://www.w3.org/TR/REC-CSS2/cascad...mportant-rules

Now I can add styles inside a table and then override with a main style sheet if I have one. Just what I was looking for :)

Fletch XXX 02-25-2005 11:10 AM

css doesnt care if mac or pc

http://www.ch33rs.com/css.html

:thumbsup

css rules


All times are GMT -7. The time now is 12:22 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123