![]() |
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? |
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. |
good question, no idea about macs, i would suppose yes
|
Yes. I dev on pc/mac and they are the same as long as your syntax is correct.
|
Quote:
|
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. |
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. |
Quote:
|
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 :) |
|
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