| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jan 2004
Posts: 2
![]() | CSS: what's the use of it? Hey, don't let the title confuse you, I'm studying CSS really hard, because I love it. My goal is to build a site using 100% CSS...At least, this WAS my goal. I just made a simple but nice CSS button, to use on my site. Here's the code: ????: NamePros.com http://www.namepros.com/programming/18869-css-whats-the-use-of-it.html .button { color: #403f71; font-variant: normal; font-size: 11px; font-family: "trebuchet MS", verdana, arial, helvetica, geneva; text-decoration: none; background-image: url(http://cdn.namepros.com/images/grad_20_dn.gif); text-align: center; text-transform: uppercase; vertical-align: middle; border: solid 1px #79789b; width: 97px; height: 20px; cursor: hand } As you can see, all plain definitions, nothing complicated. No alpha filters, for example. I tested it in several browsers, just to make sure. Well, I got a big surprise: I really thought that Netscape, at least with version 7.1, had caught up at least with the CSS basics. I was WRONG! It misses about half of the definitions: no font-variant, no text-transform, no width, no background-image. In other words, the button is unusable. If it can't even render such a simple thing, what chance do I have with a complete website? My question to the world is: why bother creating CSS in the first place, if we can't use it? I mean, I'm not talking about a minor browser like Konqueror, I'm talking about Netscape, I can't afford to build a site that is unusable with Netscape! I'd like to have your comments... |
| |
| | #3 (permalink) | ||||
| NamePros Member Join Date: Dec 2003 Location: GB, WI
Posts: 69
![]() |
i use CSS all the time as well, i have no problems with it.....and yea you cant have a 100% CSS web site, you can do alot to the page with CSS and DIV tags and ****.
__________________ Bryan Louis -Xeplin Development- http://www.xeplindevelopment.com -Personal- http://www.bryanlouis.net | ||||
| |
| | #5 (permalink) | ||||
| NamePros Member Join Date: Dec 2003 Location: GB, WI
Posts: 69
![]() |
__________________ Bryan Louis -Xeplin Development- http://www.xeplindevelopment.com -Personal- http://www.bryanlouis.net | ||||
| |
| | #6 (permalink) |
| NamePros Regular Join Date: Nov 2003
Posts: 252
![]() | I think the point being made is not a site that has absolutely no HTML tags. Rather the distinction that the structure of the site is primarily css based rather than nested table based as is the case with a majority of the sites on the web now. You would still need HTML of course. But by using CSS you could make the code a lot less messy by removing the crazy nested tables that you have to use sometimes. Not only that, it'd probably increase the page load times by decreasing the page size. From what I've read however, there is limited support for this. CSS 2.0 is aiming towards making this a REALITY but most browsers apparently do not support 2.0 yet. We'll see what the future holds
__________________ Tutorial Maniacs - The most comprehensive collection of QUALITY hand picked tutorial links on the internet. http://www.tutorialmaniacs.com |
| |
| | #7 (permalink) |
| NamePros Expert Join Date: Dec 2003 Location: NYC
Posts: 9,134
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Check out this for working with CSS for multiple browsers: www.alistapart.com/topics/css/ |
| |
| | #8 (permalink) |
| New Member Join Date: Feb 2004 Location: Germany
Posts: 9
![]() | According to the latest investigation (NSA, FBI, CIA, KGB ;-)), above 75% of the browsers currently in use (I mean, really used by real people who surf on the web) are MSIE5+. They are fully CSS compatible (or almost!). Until Netscape will catch the CSS train, consider making a small (very small, indeed) page in which you can suggest them to download a proper browser. Anyway, it's clear that CSS is the future, so, sooner or later all browsers will have to be fully compatible with it (or die). |
| |
| | #9 (permalink) |
| NamePros Member Join Date: Apr 2004 Location: Sweden
Posts: 47
![]() | CSS is great. Here's an example of what can be done with it. My mates site has a theme selector. http://www.wastedyouthconsortium.com/ Goto the bottom of the right hand column and look under Themes to find a drop down menu box full of different themes to use. I used a similar thing on a site I used to run. This is quite a basic thing to do withh CSS but a good example. CSS can do so much and makes my life much easier and my html code much tidier and therefore easier to manage. |
| |
| | #10 (permalink) | ||||
| New Member Join Date: Apr 2004 Location: Navy Town USA
Posts: 13
![]() | Re: CSS: what's the use of it?
Code: input.button {
background-color : #EFEFEF;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
} ????: NamePros.com http://www.namepros.com/showthread.php?t=18869 Good luck with this!
__________________ Sara | ||||
| |
| | #12 (permalink) | ||||
| NamePros Member Join Date: Mar 2004 Location: Middle Earth (NZ)
Posts: 149
![]() |
__________________ Script Installation, Avatars, Banners and Buttons for $NP or Paypal, PM me your requirements :D Deni J Vanin | Freelance Jobs and Forums | Web Design | ||||
| |
| | #13 (permalink) |
| New Member Join Date: Apr 2004 Location: Navy Town USA
Posts: 13
![]() | Tables are good for some sites...I still use them in the hosting site. Everything loads pretty quickly so I'm probably going to keep them there. All of my other sites use .CSS only...it loads quicker! Wesley, It's so great to just change one thing in a style sheet for 50 pages vs. each of the 50 pages.
__________________ Sara |
| |